Skip to content

Commit 6a23668

Browse files
committed
[SLP] remove uses of 'auto' that obscure functionality; NFC
1 parent 0cee1bf commit 6a23668

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6817,9 +6817,9 @@ class HorizontalReduction {
68176817
Builder.setFastMathFlags(Unsafe);
68186818

68196819
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
6820-
// The same extra argument may be used several time, so log each attempt
6820+
// The same extra argument may be used several times, so log each attempt
68216821
// to use it.
6822-
for (auto &Pair : ExtraArgs) {
6822+
for (std::pair<Instruction *, Value *> &Pair : ExtraArgs) {
68236823
assert(Pair.first && "DebugLoc must be set.");
68246824
ExternallyUsedValues[Pair.second].push_back(Pair.first);
68256825
}
@@ -6844,7 +6844,7 @@ class HorizontalReduction {
68446844

68456845
unsigned i = 0;
68466846
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
6847-
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
6847+
ArrayRef<Value *> VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
68486848
V.buildTree(VL, ExternallyUsedValues, IgnoreList);
68496849
Optional<ArrayRef<unsigned>> Order = V.bestOrder();
68506850
// TODO: Handle orders of size less than number of elements in the vector.

0 commit comments

Comments
 (0)