[Mlir-commits] [mlir] 8ab925a - [mlir] Fix ClangTidyPerformance finding (NFC).
Adrian Kuegel
llvmlistbot at llvm.org
Mon Jun 13 01:49:35 PDT 2022
Author: Adrian Kuegel
Date: 2022-06-13T10:49:25+02:00
New Revision: 8ab925a2fdcf857edf16d9cb104c9007965e025c
URL: https://github.com/llvm/llvm-project/commit/8ab925a2fdcf857edf16d9cb104c9007965e025c
DIFF: https://github.com/llvm/llvm-project/commit/8ab925a2fdcf857edf16d9cb104c9007965e025c.diff
LOG: [mlir] Fix ClangTidyPerformance finding (NFC).
Added:
Modified:
mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp b/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
index 213e1fd4176c5..7910e83eac981 100644
--- a/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
+++ b/mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
@@ -167,7 +167,7 @@ loopScheduling(scf::ForOp forOp,
opCycles[&op] = earlyCycle;
wrappedSchedule[earlyCycle % iterationInterval].push_back(&op);
}
- for (auto it : wrappedSchedule) {
+ for (const auto &it : wrappedSchedule) {
for (Operation *op : it.second) {
unsigned cycle = opCycles[op];
schedule.push_back(std::make_pair(op, cycle / iterationInterval));
More information about the Mlir-commits
mailing list