diff options
author | Shilei Tian <i@tianshilei.me> | 2024-10-11 10:19:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 10:19:54 -0400 |
commit | e34e27f19820af958db7c3b93de7f489aa3bf4dc (patch) | |
tree | fdedecaca1a8f490ead2a4ff1308d6a469655f5c /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | a8a66245954f8ef079708d314f0059d6c3e07b28 (diff) | |
download | llvm-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