[Mlir-commits] [mlir] ca2933f - [mlir] Fix ClangTidyPerformance finding (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Mon Jun 27 00:16:25 PDT 2022
Author: Adrian Kuegel
Date: 2022-06-27T09:15:39+02:00
New Revision: ca2933f3f88a09eb485146eef776b7345e3d87d3
URL: https://github.com/llvm/llvm-project/commit/ca2933f3f88a09eb485146eef776b7345e3d87d3
DIFF: https://github.com/llvm/llvm-project/commit/ca2933f3f88a09eb485146eef776b7345e3d87d3.diff
LOG: [mlir] Fix ClangTidyPerformance finding (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 1bad67f3d7f4..d6c9a3507af4 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -244,7 +244,7 @@ scf::TileUsingSCFForOp::returningMatchAndRewrite(
SmallVector<scf::ForOp> newLoops = replaceLoopNestWithNewYields(
rewriter, tilingResult.loops, op.getDestinationOperands(rewriter),
yieldValueFn);
- for (auto loop : llvm::enumerate(tilingResult.loops)) {
+ for (const auto &loop : llvm::enumerate(tilingResult.loops)) {
rewriter.eraseOp(loop.value());
tilingResult.loops[loop.index()] = newLoops[loop.index()];
}
More information about the Mlir-commits
mailing list