[PATCH] D154027: [CSSPGO] Enable stale profile matching by default for CSSPGO
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 17:48:45 PDT 2023
wlei updated this revision to Diff 535585.
wlei added a comment.
addressing feedback.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154027/new/
https://reviews.llvm.org/D154027
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
@@ -2048,6 +2048,12 @@
UsePreInlinerDecision = true;
}
+ // Enable stale profile matching by default for CSSPGO.
+ if (Reader->profileIsProbeBased()) {
+ if (!SalvageStaleProfile.getNumOccurrences())
+ SalvageStaleProfile = true;
+ }
+
if (!Reader->profileIsCS()) {
// Non-CS profile should be fine without a function size budget for the
// inliner since the contexts in the profile are either all from inlining
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154027.535585.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230629/c166efcf/attachment.bin>
More information about the llvm-commits
mailing list