[SLP] remove uses of 'auto' that obscure functionality; NFC

This commit is contained in:
Sanjay Patel 2020-09-16 08:26:21 -04:00
parent 0cee1bf5d1
commit 6a23668e78
1 changed files with 3 additions and 3 deletions

View File

@ -6817,9 +6817,9 @@ public:
Builder.setFastMathFlags(Unsafe);
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
// The same extra argument may be used several time, so log each attempt
// The same extra argument may be used several times, so log each attempt
// to use it.
for (auto &Pair : ExtraArgs) {
for (std::pair<Instruction *, Value *> &Pair : ExtraArgs) {
assert(Pair.first && "DebugLoc must be set.");
ExternallyUsedValues[Pair.second].push_back(Pair.first);
}
@ -6844,7 +6844,7 @@ public:
unsigned i = 0;
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
ArrayRef<Value *> VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
V.buildTree(VL, ExternallyUsedValues, IgnoreList);
Optional<ArrayRef<unsigned>> Order = V.bestOrder();
// TODO: Handle orders of size less than number of elements in the vector.