[SLP] change poorly named variable; NFC

'V' shadows a function argument.
This commit is contained in:
Sanjay Patel 2020-09-16 07:40:15 -04:00
parent 1c421046d7
commit 158989184e
1 changed files with 3 additions and 2 deletions

View File

@ -6844,8 +6844,9 @@ public:
// so set it as externally used to prevent it from being deleted.
ExternallyUsedValues[ReductionRoot];
SmallVector<Value *, 16> IgnoreList;
for (auto &V : ReductionOps)
IgnoreList.append(V.begin(), V.end());
for (ReductionOpsType &RdxOp : ReductionOps)
IgnoreList.append(RdxOp.begin(), RdxOp.end());
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
V.buildTree(VL, ExternallyUsedValues, IgnoreList);