aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2024-10-11 10:19:54 -0400
committerGitHub <noreply@github.com>2024-10-11 10:19:54 -0400
commite34e27f19820af958db7c3b93de7f489aa3bf4dc (patch)
treefdedecaca1a8f490ead2a4ff1308d6a469655f5c /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parenta8a66245954f8ef079708d314f0059d6c3e07b28 (diff)
downloadllvm-e34e27f19820af958db7c3b93de7f489aa3bf4dc.zip
llvm-e34e27f19820af958db7c3b93de7f489aa3bf4dc.tar.gz
llvm-e34e27f19820af958db7c3b93de7f489aa3bf4dc.tar.bz2
[TTI][AMDGPU] Allow targets to adjust `LastCallToStaticBonus` via `getInliningLastCallToStaticBonus` (#111311)
Currently we will not be able to inline a large function even if it only has one live use because the inline cost is still very high after applying `LastCallToStaticBonus`, which is a constant. This could significantly impact the performance because CSR spill is very expensive. This PR adds a new function `getInliningLastCallToStaticBonus` to TTI to allow targets to customize this value. Fixes SWDEV-471398.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions