This change slightly relaxed the current ICP threshold in top-down inliner, specifically always allow one ICP for it. It shows some perf improvements on SPEC and our internal benchmarks. Also renamed the previous flag. We can also try to turn off PGO ICP in the future.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for working on the tuning. The switch names could be confusing. How about name them this way:
- sample-profile-icp-relative-hotness: default to 25.
- sample-profile-icp-relative-hotness-skip: default to 1, with description "Skip relative hotness check for ICP up to given number of targets." (we have icp-csskip for PGO ICP, which is named similarly)
llvm/lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
202 | always allow isn't accurate - we only skip the relative hotness check. |
always allow isn't accurate - we only skip the relative hotness check.