Skip to content

Commit 89dc313

Browse files
committed
Apply clang-tidy fixes for llvm-qualified-auto in VectorUnroll.cpp (NFC)
1 parent 8383bf2 commit 89dc313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ struct UnrollContractionPattern
311311
applyPermutationMap(accPermutationMap, ArrayRef<int64_t>(offsets));
312312
// If a version of the accumulator has already been computed, use it
313313
// otherwise extract the first version from the original operand.
314-
auto accIt = accCache.find(accOffets);
314+
auto *accIt = accCache.find(accOffets);
315315
if (accIt != accCache.end())
316316
slicesOperands[2] = accIt->second;
317317
else
@@ -387,7 +387,7 @@ struct UnrollMultiReductionPattern
387387
SmallVector<int64_t> accStrides(destOffset.size(), 1);
388388
// If a version of the accumulator has already been computed, use it
389389
// otherwise extract the first version from the original operand.
390-
auto accIt = accCache.find(destOffset);
390+
auto *accIt = accCache.find(destOffset);
391391
if (accIt != accCache.end())
392392
acc = accIt->second;
393393
else

0 commit comments

Comments
 (0)