[Mlir-commits] [mlir] 2fe37d1 - Apply clang-tidy fixes for performance-unnecessary-value-param in FoldMemRefAliasOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Sep 5 05:35:15 PDT 2022
Author: Mehdi Amini
Date: 2022-09-05T12:34:46Z
New Revision: 2fe37d1c7e4b94b52788d07ab4cb67be514187ee
URL: https://github.com/llvm/llvm-project/commit/2fe37d1c7e4b94b52788d07ab4cb67be514187ee
DIFF: https://github.com/llvm/llvm-project/commit/2fe37d1c7e4b94b52788d07ab4cb67be514187ee.diff
LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in FoldMemRefAliasOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp b/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
index e7a2ae7464c5..875ef126e45e 100644
--- a/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
+++ b/mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
@@ -297,8 +297,9 @@ class StoreOpOfCollapseShapeOpFolder final : public OpRewritePattern<OpTy> {
} // namespace
static SmallVector<Value>
-calculateExpandedAccessIndices(AffineMap affineMap, SmallVector<Value> indices,
- Location loc, PatternRewriter &rewriter) {
+calculateExpandedAccessIndices(AffineMap affineMap,
+ const SmallVector<Value> &indices, Location loc,
+ PatternRewriter &rewriter) {
SmallVector<Value> expandedIndices;
for (unsigned i = 0, e = affineMap.getNumResults(); i < e; i++)
expandedIndices.push_back(
More information about the Mlir-commits
mailing list