[Mlir-commits] [mlir] 28e5e3d - Apply clang-tidy fixes for performance-for-range-copy in TilingInterfaceImpl.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Sep 4 03:42:00 PDT 2022
Author: Mehdi Amini
Date: 2022-09-04T10:41:30Z
New Revision: 28e5e3d63474cd935bbbe30420aa41fbea5a1d0d
URL: https://github.com/llvm/llvm-project/commit/28e5e3d63474cd935bbbe30420aa41fbea5a1d0d
DIFF: https://github.com/llvm/llvm-project/commit/28e5e3d63474cd935bbbe30420aa41fbea5a1d0d.diff
LOG: Apply clang-tidy fixes for performance-for-range-copy in TilingInterfaceImpl.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp b/mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
index 761be35cfc6a..870f96282edb 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/TilingInterfaceImpl.cpp
@@ -58,7 +58,7 @@ static LogicalResult inlinePayload(OpBuilder &b, LinalgOp linalgOp,
Operation *terminator = body->getTerminator();
Location loc = terminator->getLoc();
- for (auto operand : llvm::enumerate(terminator->getOperands())) {
+ for (const auto &operand : llvm::enumerate(terminator->getOperands())) {
Value toStore = map.lookupOrDefault(operand.value());
OpOperand *storeInto = linalgOp.getOutputOperand(operand.index());
auto indices = getIndicesForAccess(
More information about the Mlir-commits
mailing list