summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-10-20 09:02:08 -0700
committerMehdi Amini <joker.eph@gmail.com>2024-02-14 10:11:37 -0800
commit89dc313af9fbabbf7b064df8ab09d4e49f36c0cd (patch)
treeadd1857199e1d73d42d357f1a76610f0070bcbb4
parent8383bf23074e4a7910441aa7ab54707242eac405 (diff)
Apply clang-tidy fixes for llvm-qualified-auto in VectorUnroll.cpp (NFC)
-rw-r--r--mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
index 78b041255443..c83776422f22 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
@@ -311,7 +311,7 @@ struct UnrollContractionPattern
applyPermutationMap(accPermutationMap, ArrayRef<int64_t>(offsets));
// If a version of the accumulator has already been computed, use it
// otherwise extract the first version from the original operand.
- auto accIt = accCache.find(accOffets);
+ auto *accIt = accCache.find(accOffets);
if (accIt != accCache.end())
slicesOperands[2] = accIt->second;
else
@@ -387,7 +387,7 @@ struct UnrollMultiReductionPattern
SmallVector<int64_t> accStrides(destOffset.size(), 1);
// If a version of the accumulator has already been computed, use it
// otherwise extract the first version from the original operand.
- auto accIt = accCache.find(destOffset);
+ auto *accIt = accCache.find(destOffset);
if (accIt != accCache.end())
acc = accIt->second;
else