[llvm] [LV] Use VPReductionRecipe for partial reductions (PR #147513)
Gaƫtan Bossu via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 06:41:43 PST 2025
================
@@ -2378,32 +2395,21 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe,
/// The recurrence kind of the reduction.
const RecurKind Kind;
- /// The phi is part of an in-loop reduction.
- bool IsInLoop;
-
- /// The phi is part of an ordered reduction. Requires IsInLoop to be true.
- bool IsOrdered;
-
- /// When expanding the reduction PHI, the plan's VF element count is divided
- /// by this factor to form the reduction phi's VF.
- unsigned VFScaleFactor = 1;
+ RdxStyle Style;
----------------
gbossu wrote:
This is nicer!
https://github.com/llvm/llvm-project/pull/147513
More information about the llvm-commits
mailing list