[llvm] [InlineCost] Enable the cost benefit analysis for Sample PGO (PR #66457)

Haohai Wen via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 23:42:46 PST 2024


HaohaiWen wrote:

It's long time ago. I think its about ~1% gain.
If I recall correctly, without this patch, some hot functions can be inlined by IPGO due to cost-benefit but not inlined for SPGO.
Will cost-threshold use PGO profile data as hint to inline?
Is there any reason why SPGO can't use cost-benefit analysis?


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


More information about the llvm-commits mailing list