[llvm] [LV] Use VPReductionRecipe for partial reductions (PR #147513)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 09:03:42 PST 2025
================
@@ -2405,6 +2405,30 @@ struct VPFirstOrderRecurrencePHIRecipe : public VPHeaderPHIRecipe {
#endif
};
+// Possible variants of a reduction.
+
+// This reduction is ordered and in-loop.
+struct RdxOrdered {};
+// This reduction is in-loop.
+struct RdxInLoop {};
+// This reduction is normal with a >= 1 factor that the vector length is
+// scaled down by.
+struct RdxNormal {
----------------
sdesmalen-arm wrote:
nit: I think `RdxUnordered` is a better name.
https://github.com/llvm/llvm-project/pull/147513
More information about the llvm-commits
mailing list