[Mlir-commits] [mlir] d84e4f0 - [mlir] Apply ClangTidy performance fix (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Mon Oct 24 06:25:19 PDT 2022
Author: Adrian Kuegel
Date: 2022-10-24T15:24:42+02:00
New Revision: d84e4f0829c495452c7ac9f4a7725bde25653dde
URL: https://github.com/llvm/llvm-project/commit/d84e4f0829c495452c7ac9f4a7725bde25653dde
DIFF: https://github.com/llvm/llvm-project/commit/d84e4f0829c495452c7ac9f4a7725bde25653dde.diff
LOG: [mlir] Apply ClangTidy performance fix (NFC)
Added:
Modified:
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index e632be0d004b7..9d9f1ea67adf5 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -495,7 +495,7 @@ transform::SplitHandlesOp::apply(transform::TransformResults &results,
<< " handles";
}
// Normal successful case.
- for (auto en : llvm::enumerate(state.getPayloadOps(getHandle())))
+ for (const auto &en : llvm::enumerate(state.getPayloadOps(getHandle())))
results.set(getResults()[en.index()].cast<OpResult>(), en.value());
return DiagnosedSilenceableFailure::success();
}
More information about the Mlir-commits
mailing list