[llvm] [SLP] Store reduction context hint as part of VectorValuesAndScales (PR #229653)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 07:53:11 PDT 2026


================
@@ -34525,12 +34529,14 @@ class HorizontalReduction {
     for (bool Negated : {false, true})
       for (const ReductionVectorPart &P : VectorValuesAndScales)
         if (P.Negated == Negated)
-          CreateVecOp(P.Vec, P.Scale, P.IsSigned, P.ReducedInTree, P.Negated);
+          CreateVecOp(P.Vec, P.Scale, P.IsSigned, P.ReducedInTree, P.Negated,
----------------
bababuck wrote:

Why? This is passed in from `VectorValuesAndScales`. In the case of `P.ReducedInTree == true` we use it.

https://github.com/llvm/llvm-project/pull/229653


More information about the llvm-commits mailing list