[Mlir-commits] [mlir] 89dc313 - Apply clang-tidy fixes for llvm-qualified-auto in VectorUnroll.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Feb 14 10:12:39 PST 2024
Author: Mehdi Amini
Date: 2024-02-14T10:11:37-08:00
New Revision: 89dc313af9fbabbf7b064df8ab09d4e49f36c0cd
URL: https://github.com/llvm/llvm-project/commit/89dc313af9fbabbf7b064df8ab09d4e49f36c0cd
DIFF: https://github.com/llvm/llvm-project/commit/89dc313af9fbabbf7b064df8ab09d4e49f36c0cd.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in VectorUnroll.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
index 78b041255443c3..c83776422f224c 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
More information about the Mlir-commits
mailing list