[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:48:56 PST 2025
================
@@ -2370,6 +2370,23 @@ struct VPFirstOrderRecurrencePHIRecipe : public VPHeaderPHIRecipe {
#endif
};
+// Possible variants of a reduction.
+
+// This reduction is ordered and in-loop.
+struct RdxOrderedInLoop {};
+// This reduction is in-loop.
+struct RdxInLoop {};
+// This reduction isn't partial, ordered or in-loop.
+struct RdxNormal {};
----------------
gbossu wrote:
Sorry I confused "normal" and "inloop". When do we actually get a "full unordered out-of-loop" reduction? Isn't that supposed to be a `ComputeReductionResult` recipe instead?
https://github.com/llvm/llvm-project/pull/147513
More information about the llvm-commits
mailing list