[Mlir-commits] [mlir] b285d70 - Apply clang-tidy fixes for performance-for-range-copy in TileUsingInterface.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 7 02:46:24 PDT 2022
Author: Mehdi Amini
Date: 2022-09-07T09:40:59Z
New Revision: b285d708a7703d491282318dacf06679479ae8e4
URL: https://github.com/llvm/llvm-project/commit/b285d708a7703d491282318dacf06679479ae8e4
DIFF: https://github.com/llvm/llvm-project/commit/b285d708a7703d491282318dacf06679479ae8e4.diff
LOG: Apply clang-tidy fixes for performance-for-range-copy in TileUsingInterface.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index 8e55ce9613ba..15ca87597704 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -70,7 +70,7 @@ static SmallVector<T> applyPermutationToVector(const SmallVector<T> &vector,
static SmallVector<unsigned>
invertPermutationVector(ArrayRef<unsigned> interchange) {
SmallVector<unsigned> inversion(interchange.size());
- for (auto pos : llvm::enumerate(interchange)) {
+ for (const auto &pos : llvm::enumerate(interchange)) {
inversion[pos.value()] = pos.index();
}
return inversion;
More information about the Mlir-commits
mailing list