[llvm] [TTI][AMDGPU] Allow targets to adjust `LastCallToStaticBonus` via `getInliningLastCallToStaticBonus` (PR #111311)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 13:03:31 PDT 2024


================
@@ -74,6 +74,10 @@ class TargetTransformInfoImplBase {
   unsigned getInliningCostBenefitAnalysisProfitableMultiplier() const {
     return 8;
   }
+  int getInliningLastCallToStaticBonus() const {
+    // This is same as InlineConstants::LastCallToStaticBonus.
+    return 15000;
----------------
arsenm wrote:

Just use LastCallToStaticBonus instead of hoping it stays the same? 

https://github.com/llvm/llvm-project/pull/111311


More information about the llvm-commits mailing list