[llvm] [LV] Bundle partial reductions inside VPExpressionRecipe (PR #147302)

Gaëtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 06:08:04 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:

Oh right, so `dyn_cast` and friends weren't working as expected on `VPPartialReductionRecipe`. I hope you didn't spend too much time debugging that 😆 

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


More information about the llvm-commits mailing list