[llvm] [SLP] Ensure TreeCost is scaled for ordered fadd reductions (PR #199388)
Kavin Gnanapandithan via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 10:18:10 PDT 2026
================
@@ -18752,7 +18757,7 @@ InstructionCost BoUpSLP::calculateTreeCostAndTrimNonProfitable(
}
}
if (!CostIsFree && !Scale) {
- Scale = IsGatherLike ? getGatherNodeEffectiveScale(TE)
+ Scale = IsGatherLike ? getGatherNodeEffectiveScale(TE, RdxRoot)
----------------
KavinTheG wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/199388
More information about the llvm-commits
mailing list