[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (PR #113903)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 10 03:01:57 PDT 2025
================
@@ -2579,7 +2611,7 @@ class VPInterleaveRecipe : public VPRecipeBase {
/// A recipe to represent inloop reduction operations, performing a reduction on
/// a vector operand into a scalar value, and adding the result to a chain.
/// The Operands are {ChainOp, VecOp, [Condition]}.
-class VPReductionRecipe : public VPSingleDefRecipe {
+class VPReductionRecipe : public VPRecipeWithIRFlags {
----------------
fhahn wrote:
Sorry for coming just back to this, I think it would be possible and good to split this off, because it looks like VPReductionRecipe currently uses flags from the reduction descriptor in some places ( https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp#L2229) and from the underlying instruction (!) in some other places https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp#L2349
https://github.com/llvm/llvm-project/pull/113903
More information about the llvm-commits
mailing list