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

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 12:50:03 PDT 2024


================
@@ -75,6 +75,10 @@ static cl::opt<size_t> InlineMaxBB(
     cl::desc("Maximum number of BBs allowed in a function after inlining"
              " (compile time constraint)"));
 
+static cl::opt<unsigned> InlineThresholdOneLiveUse(
+    "amdgpu-inline-threshold-one-live-use", cl::Hidden, cl::init(165000),
----------------
shiltian wrote:

165000 is the default value 15000 multiplied by AMDGPU's inlining threshold multiplier`, which is 11.

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


More information about the llvm-commits mailing list