[llvm] [SLP] Ensure TreeCost is scaled for ordered fadd reductions (PR #199388)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 09:58:53 PDT 2026
================
@@ -18752,7 +18757,7 @@ InstructionCost BoUpSLP::calculateTreeCostAndTrimNonProfitable(
}
}
if (!CostIsFree && !Scale) {
- Scale = IsGatherLike ? getGatherNodeEffectiveScale(TE)
+ Scale = IsGatherLike ? getGatherNodeEffectiveScale(TE, RdxRoot)
----------------
alexey-bataev wrote:
Missed one thing, need to pass RdxRoot only if `TE.Idx == 0`, otherwise it should be `nullptr`.
https://github.com/llvm/llvm-project/pull/199388
More information about the llvm-commits
mailing list