forked from OSchip/llvm-project
[SLP] move loop index variable declaration to its use; NFC
This commit is contained in:
parent
158989184e
commit
bbad998bab
|
@ -6819,7 +6819,6 @@ public:
|
||||||
FastMathFlags Unsafe;
|
FastMathFlags Unsafe;
|
||||||
Unsafe.setFast();
|
Unsafe.setFast();
|
||||||
Builder.setFastMathFlags(Unsafe);
|
Builder.setFastMathFlags(Unsafe);
|
||||||
unsigned i = 0;
|
|
||||||
|
|
||||||
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
|
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
|
||||||
// The same extra argument may be used several time, so log each attempt
|
// The same extra argument may be used several time, so log each attempt
|
||||||
|
@ -6847,6 +6846,7 @@ public:
|
||||||
for (ReductionOpsType &RdxOp : ReductionOps)
|
for (ReductionOpsType &RdxOp : ReductionOps)
|
||||||
IgnoreList.append(RdxOp.begin(), RdxOp.end());
|
IgnoreList.append(RdxOp.begin(), RdxOp.end());
|
||||||
|
|
||||||
|
unsigned i = 0;
|
||||||
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
|
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
|
||||||
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
|
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
|
||||||
V.buildTree(VL, ExternallyUsedValues, IgnoreList);
|
V.buildTree(VL, ExternallyUsedValues, IgnoreList);
|
||||||
|
|
Loading…
Reference in New Issue