[llvm] [TTI][AMDGPU] Allow targets to adjust `LastCallToStaticBonus` via `getInliningLastCallToStaticBonus` (PR #111311)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 13:20:12 PDT 2024
================
@@ -74,6 +74,11 @@ class TargetTransformInfoImplBase {
unsigned getInliningCostBenefitAnalysisProfitableMultiplier() const {
return 8;
}
+ int getInliningLastCallToStaticBonus() const {
+ // This is the value of InlineConstants::LastCallToStaticBonus before this
+ // function was introduced.
+ return 15000;
----------------
arsenm wrote:
Can you just use the constant enum instead of hardcoding it with comment?
https://github.com/llvm/llvm-project/pull/111311
More information about the llvm-commits
mailing list