Skip to content

Commit b8b5165

Browse files
committed
[mlir] Apply ClangTidy performance finding.
loop variable is copied but only used as const reference.
1 parent 3dfea72 commit b8b5165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/lib/Interfaces/TilingInterface/TestTilingInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ struct TestTileConsumerAndFuseProducersGreedilyUsingSCFForOp
116116
}
117117
// Replace the tiled op with replacements.
118118
SmallVector<Value> replacements(op->getNumResults());
119-
for (auto result : llvm::enumerate(op->getResults())) {
119+
for (const auto &result : llvm::enumerate(op->getResults())) {
120120
replacements[result.index()] =
121121
tileAndFuseResult->replacements.lookup(result.value());
122122
}

0 commit comments

Comments
 (0)