[llvm-branch-commits] [llvm] [LV] Use VPReductionRecipe for partial reductions (PR #146073)

Sam Tebbs via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 7 02:13:07 PDT 2025


================
@@ -2744,6 +2702,12 @@ class VPSingleDefBundleRecipe : public VPSingleDefRecipe {
     /// vector operands, performing a reduction.add on the result, and adding
     /// the scalar result to a chain.
     MulAccumulateReduction,
+    /// Represent an inloop multiply-accumulate reduction, multiplying the
+    /// extended vector operands, negating the multiplication, performing a
+    /// reduction.add
+    /// on the result, and adding
+    /// the scalar result to a chain.
+    ExtNegatedMulAccumulateReduction,
----------------
SamTebbs33 wrote:

Thanks Florian, that sounds like a good approach.

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


More information about the llvm-branch-commits mailing list