[llvm] [LV] Bundle partial reductions inside VPExpressionRecipe (PR #147302)
Gaƫtan Bossu via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 01:04:26 PDT 2025
================
@@ -2856,6 +2867,19 @@ InstructionCost VPExpressionRecipe::computeCost(ElementCount VF,
Opcode = Instruction::Sub;
LLVM_FALLTHROUGH;
case ExpressionTypes::ExtMulAccReduction: {
+ if (isa<VPPartialReductionRecipe>(ExpressionRecipes.back())) {
----------------
gbossu wrote:
Curious: Were we already implicitly supporting partial reductions because `VPPartialReductionRecipe` is a subclass of `VPReductionRecipe`? Is this patch "just" about computing better costs or does it also add extra capabilities?
https://github.com/llvm/llvm-project/pull/147302
More information about the llvm-commits
mailing list