[llvm] [LV] Bundle (partial) reductions with a mul of a constant (PR #162503)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 23 06:40:45 PDT 2025
================
@@ -3572,9 +3550,38 @@ tryToMatchAndCreateMulAccumulateReduction(VPReductionRecipe *Red,
ExtCost += Ext1->computeCost(VF, Ctx);
if (OuterExt)
ExtCost += OuterExt->computeCost(VF, Ctx);
+ InstructionCost BaseCost = ExtCost + MulCost + RedCost;
- return MulAccCost.isValid() &&
- MulAccCost < ExtCost + MulCost + RedCost;
+ if (IsPartialReduction) {
----------------
SamTebbs33 wrote:
Done.
https://github.com/llvm/llvm-project/pull/162503
More information about the llvm-commits
mailing list