[PATCH] D127330: [CSSPGO][Preinliner] Set default value of sample-profile-inline-limit-max to 3000
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 11:50:34 PDT 2022
hoy created this revision.
Herald added subscribers: modimo, wenlei.
Herald added a project: All.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The default value of sample-profile-inline-limit-max is defined as 10000 in sampleprofile.cpp. This is too big for cspreinliner which works with assembly size instead of IR size. The value 3000 turns out to be a good tradeoff. Compared to the value 10000, 3000 gives as good performance and code size, but lower build time.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127330
Files:
llvm/tools/llvm-profgen/CSPreInliner.cpp
Index: llvm/tools/llvm-profgen/CSPreInliner.cpp
===================================================================
--- llvm/tools/llvm-profgen/CSPreInliner.cpp
+++ llvm/tools/llvm-profgen/CSPreInliner.cpp
@@ -69,6 +69,8 @@
SampleHotCallSiteThreshold = 1500;
if (!SampleColdCallSiteThreshold.getNumOccurrences())
SampleColdCallSiteThreshold = 0;
+ if (!ProfileInlineLimitMax.getNumOccurrences())
+ ProfileInlineLimitMax = 3000;
}
std::vector<StringRef> CSPreInliner::buildTopDownOrder() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127330.435278.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220608/7d9d2a32/attachment.bin>
More information about the llvm-commits
mailing list