[Mlir-commits] [mlir] 67bcf98 - [mlir][SCF] Apply ClangTidyPerformance finding (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Fri Sep 30 03:48:22 PDT 2022
Author: Adrian Kuegel
Date: 2022-09-30T12:47:32+02:00
New Revision: 67bcf9825ad8e41c93c4db06e98f62ee66b4e2cc
URL: https://github.com/llvm/llvm-project/commit/67bcf9825ad8e41c93c4db06e98f62ee66b4e2cc
DIFF: https://github.com/llvm/llvm-project/commit/67bcf9825ad8e41c93c4db06e98f62ee66b4e2cc.diff
LOG: [mlir][SCF] Apply 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 fb219dfbb439a..65bc941e0e0fa 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -253,7 +253,7 @@ static void
updateDestinationOperandsForTiledOp(OpBuilder &builder,
ValueRange tiledOpDestinationValues,
ValueRange bbArgsList) {
- for (auto destValue : llvm::enumerate(tiledOpDestinationValues)) {
+ for (const auto &destValue : llvm::enumerate(tiledOpDestinationValues)) {
auto sliceOp = destValue.value().getDefiningOp<tensor::ExtractSliceOp>();
if (!sliceOp)
continue;
More information about the Mlir-commits
mailing list