[llvm] [LV] Use VPReductionRecipe for partial reductions (PR #144908)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 08:39:02 PDT 2025
================
@@ -2598,6 +2554,16 @@ VPExtendedReductionRecipe::computeCost(ElementCount VF,
InstructionCost
VPMulAccumulateReductionRecipe::computeCost(ElementCount VF,
VPCostContext &Ctx) const {
+ if (isPartialReduction())
----------------
sdesmalen-arm wrote:
Should `VPExtendedReductionRecipe::computeCost` also be updated?
https://github.com/llvm/llvm-project/pull/144908
More information about the llvm-commits
mailing list