[Mlir-commits] [mlir] 16b2604 - Apply clang-tidy fixes for performance-for-range-copy in Vectorization.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Dec 29 12:51:45 PST 2022


Author: Mehdi Amini
Date: 2022-12-29T20:50:25Z
New Revision: 16b2604423460707815dedd282804b3aa9d6f72b

URL: https://github.com/llvm/llvm-project/commit/16b2604423460707815dedd282804b3aa9d6f72b
DIFF: https://github.com/llvm/llvm-project/commit/16b2604423460707815dedd282804b3aa9d6f72b.diff

LOG: Apply clang-tidy fixes for performance-for-range-copy in Vectorization.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index 5737b1eb83115..a3c5ecd2ba4fa 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -860,7 +860,7 @@ vectorizeAsLinalgGeneric(RewriterBase &rewriter, VectorizationState &state,
     // Remove zeros from indexing map to use it as masking map.
     SmallVector<int64_t> zeroPos;
     auto results = indexingMap.getResults();
-    for (auto result : llvm::enumerate(results)) {
+    for (const auto &result : llvm::enumerate(results)) {
       if (result.value().isa<AffineConstantExpr>()) {
         zeroPos.push_back(result.index());
       }


        


More information about the Mlir-commits mailing list