[llvm] [AMDGPU] Increase inline threshold when the callee only has one live use (PR #111311)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 01:00:37 PDT 2024
jmmartinez wrote:
> but the cost is still very close to the threshold: cost=14010, threshold=170775.
It's a 10x difference. Looks pretty safe to me. What am I missing?
TBH I do not see much of an easy alternative to what you're doing.
---
To test, instead of using big functions, you could pass `-inline-threshold=0 -debug-only=inline-cost` and check that the inline threshold increases between a function that is called once and another that is called twice.
https://github.com/llvm/llvm-project/pull/111311
More information about the llvm-commits
mailing list