Skip to content

Commit 1589891

Browse files
committed
[SLP] change poorly named variable; NFC
'V' shadows a function argument.
1 parent 1c42104 commit 1589891

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6844,8 +6844,9 @@ class HorizontalReduction {
68446844
// so set it as externally used to prevent it from being deleted.
68456845
ExternallyUsedValues[ReductionRoot];
68466846
SmallVector<Value *, 16> IgnoreList;
6847-
for (auto &V : ReductionOps)
6848-
IgnoreList.append(V.begin(), V.end());
6847+
for (ReductionOpsType &RdxOp : ReductionOps)
6848+
IgnoreList.append(RdxOp.begin(), RdxOp.end());
6849+
68496850
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
68506851
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
68516852
V.buildTree(VL, ExternallyUsedValues, IgnoreList);

0 commit comments

Comments
 (0)