[PATCH] D124793: [CSSPGO] Relax size limitation for priority inlining with preinlined profile
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 18:43:26 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3113e5bb520c: [CSSPGO] Relax size limitation for priority inlining with preinlined profile (authored by hoy).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124793/new/
https://reviews.llvm.org/D124793
Files:
llvm/lib/Transforms/IPO/SampleProfile.cpp
Index: llvm/lib/Transforms/IPO/SampleProfile.cpp
===================================================================
--- llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ llvm/lib/Transforms/IPO/SampleProfile.cpp
@@ -2025,10 +2025,13 @@
if (Reader->profileIsPreInlined()) {
if (!UsePreInlinerDecision.getNumOccurrences())
UsePreInlinerDecision = true;
- } else if (!Reader->profileIsCS()) {
+ }
+
+ if (!Reader->profileIsCS()) {
// Non-CS profile should be fine without a function size budget for the
- // inliner since the contexts in the profile are all from inlining in
- // the prevoius build, thus they are bounded.
+ // inliner since the contexts in the profile are either all from inlining
+ // in the prevoius build or pre-computed by the preinliner with a size
+ // cap, thus they are bounded.
if (!ProfileInlineLimitMin.getNumOccurrences())
ProfileInlineLimitMin = std::numeric_limits<unsigned>::max();
if (!ProfileInlineLimitMax.getNumOccurrences())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124793.426889.patch
Type: text/x-patch
Size: 1042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/0a5b94af/attachment.bin>
More information about the llvm-commits
mailing list