We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c42104 commit 1589891Copy full SHA for 1589891
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -6844,8 +6844,9 @@ class HorizontalReduction {
6844
// so set it as externally used to prevent it from being deleted.
6845
ExternallyUsedValues[ReductionRoot];
6846
SmallVector<Value *, 16> IgnoreList;
6847
- for (auto &V : ReductionOps)
6848
- IgnoreList.append(V.begin(), V.end());
+ for (ReductionOpsType &RdxOp : ReductionOps)
+ IgnoreList.append(RdxOp.begin(), RdxOp.end());
6849
+
6850
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
6851
auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
6852
V.buildTree(VL, ExternallyUsedValues, IgnoreList);
0 commit comments