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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 16:39:10 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 {
----------------
fhahn wrote:

I think we need to also add support for the new recipe to type inference in VPlanAnalysis.cpp

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


More information about the llvm-commits mailing list