[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 10:20:16 PDT 2026
================
@@ -18752,7 +18757,8 @@ InstructionCost BoUpSLP::calculateTreeCostAndTrimNonProfitable(
}
}
if (!CostIsFree && !Scale) {
- Scale = IsGatherLike ? getGatherNodeEffectiveScale(TE)
+ Scale = IsGatherLike ? getGatherNodeEffectiveScale(
+ TE, (TE.Idx == 0) ? RdxRoot : nullptr)
----------------
alexey-bataev wrote:
Drop parens
https://github.com/llvm/llvm-project/pull/199388
More information about the llvm-commits
mailing list