[llvm] [LV][EVL] Support reduction idioms using tail folding with EVL. (PR #90184)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 23:53:37 PDT 2024


================
@@ -2139,6 +2146,62 @@ class VPReductionRecipe : public VPSingleDefRecipe {
   }
 };
 
+/// A recipe to represent inloop reduction operations with vector-predication
+/// intrinsics, performing a reduction on a vector operand with the explicit
+/// vector length (EVL) into a scalar value, and adding the result to a chain.
+/// The Operands are {ChainOp, VecOp, EVL, [Condition]}.
+class VPReductionEVLRecipe : public VPSingleDefRecipe {
----------------
Mel-Chen wrote:

f2b218320b0d1fcb9bfdeca8d3d8c6072e8057ab

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


More information about the llvm-commits mailing list