[llvm] [SLP] Don't rely on VectorizableTree in canBuildSplitNode() when called from tryToReduce() (PR #220014)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 09:13:39 PDT 2026
================
@@ -31201,7 +31140,8 @@ class HorizontalReduction {
SmallVector<Value *> Op1, Op2;
BoUpSLP::OrdersType ReorderIndices;
if (MainOp && AltOp &&
- V.canBuildSplitNode(Ops, OpS, Op1, Op2, ReorderIndices)) {
+ V.canBuildSplitNode(Ops, OpS, Op1, Op2, ReorderIndices,
+ /*TreeExists*/ false)) {
----------------
alexey-bataev wrote:
Why the tree is not cleared properly instead?
https://github.com/llvm/llvm-project/pull/220014
More information about the llvm-commits
mailing list