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

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 07:14:23 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
----------------
shiltian wrote:

I just wanted to mention here that this is not a random value. It is the previous `InlineConstants::LastCallToStaticBonus` which got removed in this PR.

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


More information about the llvm-commits mailing list