[Mlir-commits] [mlir] 47286e1 - Apply clang-tidy fixes for performance-for-range-copy in LinalgOps.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Apr 11 22:30:18 PDT 2022


Author: Mehdi Amini
Date: 2022-04-12T05:30:01Z
New Revision: 47286e17edac988806bbc255f266ce0a92144e3f

URL: https://github.com/llvm/llvm-project/commit/47286e17edac988806bbc255f266ce0a92144e3f
DIFF: https://github.com/llvm/llvm-project/commit/47286e17edac988806bbc255f266ce0a92144e3f.diff

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index 76b18c7301533..78b32cb54c2db 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -116,7 +116,7 @@ static bool hasaUniqueDim(ArrayRef<AffineMap> maps, unsigned testMapLocation) {
     if (expr != nullptr)
       dimsToCheck.insert(expr.getPosition());
   }
-  for (auto It : llvm::enumerate(maps)) {
+  for (const auto &It : llvm::enumerate(maps)) {
     if (It.index() == testMapLocation)
       continue;
     auto map = It.value();


        


More information about the Mlir-commits mailing list