[SLP] move loop index variable declaration to its use; NFC

This commit is contained in:
Sanjay Patel 2020-09-16 07:44:03 -04:00
parent 158989184e
commit bbad998bab
1 changed files with 1 additions and 1 deletions

View File

@ -6819,7 +6819,6 @@ public:
FastMathFlags Unsafe;
Unsafe.setFast();
Builder.setFastMathFlags(Unsafe);
unsigned i = 0;
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
// The same extra argument may be used several time, so log each attempt
@ -6847,6 +6846,7 @@ public:
for (ReductionOpsType &RdxOp : ReductionOps)
IgnoreList.append(RdxOp.begin(), RdxOp.end());
unsigned i = 0;
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
V.buildTree(VL, ExternallyUsedValues, IgnoreList);