forked from OSchip/llvm-project
e32469a140
by default. sample-profile-top-down-load is an internal option which can enable top-down order of inlining and profile annotation in sample profile load pass. It was found to be beneficial for better profile annotation. Recently we found it could also solve some build time issue. Suppose function A has many callsites in function B. In the last release binary where sample profile was collected, the outline copy of A is large because there are many other functions inlined into A. However although all the callsites calling A in B are inlined, but every inlined body is small (A was inlined into B before other functions are inlined into A), there is no build time issue in last release. In an optimized build using the sample profile collected from last release, without top-down inlining, we saw a case that A got very large because of inlining, and then multiple callsites of A got inlined into B, and that led to a huge B which caused significant build time issue besides profile annotation issue. To solve that problem, the patch enables the flag sample-profile-top-down-load by default. sample-profile-top-down-load can have better performance when it is enabled together with sample-profile-merge-inlinee so in this patch we also enable sample-profile-merge-inlinee by default. Differential Revision: https://reviews.llvm.org/D82919 |
||
---|---|---|
.. | ||
Inputs | ||
branch.ll | ||
calls.ll | ||
cold-indirect-call.ll | ||
compressed-profile-symbol-list.ll | ||
cov-zero-samples.ll | ||
coverage-warning.ll | ||
discriminator.ll | ||
early-inline.ll | ||
entry_counts.ll | ||
entry_counts_cold.ll | ||
entry_counts_missing_dbginfo.ll | ||
flattened.ll | ||
fnptr.ll | ||
function_metadata.ll | ||
gcc-simple.ll | ||
indirect-call-gcc.ll | ||
indirect-call.ll | ||
inline-act.ll | ||
inline-callee-update.ll | ||
inline-cold-callsite-samplepgo.ll | ||
inline-cold.ll | ||
inline-combine.ll | ||
inline-coverage.ll | ||
inline-mergeprof.ll | ||
inline-stats.ll | ||
inline-topdown.ll | ||
inline.ll | ||
nodebug.ll | ||
nolocinfo.ll | ||
offset.ll | ||
profile-format-compress.ll | ||
profile-format.ll | ||
profile-sample-accurate.ll | ||
propagate.ll | ||
remap.ll | ||
remarks.ll | ||
section-accurate-samplepgo.ll | ||
summary.ll | ||
syntax.ll | ||
uncompressed-profile-symbol-list.ll | ||
use-sample-profile-attr.ll | ||
warm-inline-instance.ll |