[llvm] [AMDGPU] Increase inline threshold when the callee only has one live use (PR #111311)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 12:44:26 PDT 2024
================
@@ -1943,7 +1943,7 @@ void InlineCostCallAnalyzer::updateThreshold(CallBase &Call, Function &Callee) {
// and the callsite.
int SingleBBBonusPercent = 50;
int VectorBonusPercent = TTI.getInlinerVectorBonusPercent();
- int LastCallToStaticBonus = InlineConstants::LastCallToStaticBonus;
----------------
shiltian wrote:
We still can't delete `InlineConstants::LastCallToStaticBonus` because it is used in another place where there is no access to TTI (including its parent function).
https://github.com/llvm/llvm-project/blob/4169338e75cdce73d34063532db598c95ee82ae4/llvm/lib/Analysis/InlineAdvisor.cpp#L323
https://github.com/llvm/llvm-project/pull/111311
More information about the llvm-commits
mailing list