Skip to content

Commit bbad998

Browse files
committed
[SLP] move loop index variable declaration to its use; NFC
1 parent 1589891 commit bbad998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6819,7 +6819,6 @@ class HorizontalReduction {
68196819
FastMathFlags Unsafe;
68206820
Unsafe.setFast();
68216821
Builder.setFastMathFlags(Unsafe);
6822-
unsigned i = 0;
68236822

68246823
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
68256824
// The same extra argument may be used several time, so log each attempt
@@ -6847,6 +6846,7 @@ class HorizontalReduction {
68476846
for (ReductionOpsType &RdxOp : ReductionOps)
68486847
IgnoreList.append(RdxOp.begin(), RdxOp.end());
68496848

6849+
unsigned i = 0;
68506850
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
68516851
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
68526852
V.buildTree(VL, ExternallyUsedValues, IgnoreList);

0 commit comments

Comments
 (0)