llvm-project/llvm/test/Transforms/SampleProfile
Wei Mi e32469a140 [SampleFDO] Enable sample-profile-top-down-load and sample-profile-merge-inlinee
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
2020-07-08 09:23:18 -07:00
..
Inputs [Remarks] Add callsite locations to inline remarks 2020-06-20 23:32:10 -07:00
branch.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
calls.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
cold-indirect-call.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
compressed-profile-symbol-list.ll [SampleFDO] Add compression support for any section in ExtBinary profile format 2019-10-07 16:12:37 +00:00
cov-zero-samples.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
coverage-warning.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
discriminator.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
early-inline.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
entry_counts.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
entry_counts_cold.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
entry_counts_missing_dbginfo.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
flattened.ll
fnptr.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
function_metadata.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
gcc-simple.ll [gcov] Delete XFAIL: host-byteorder-big-endian 2020-06-03 19:58:28 -07:00
indirect-call-gcc.ll [gcov] Delete XFAIL: host-byteorder-big-endian 2020-06-03 19:58:28 -07:00
indirect-call.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-act.ll Migrate function attribute "no-frame-pointer-elim"="false" to "frame-pointer"="none" as cleanups after D56351 2019-12-24 16:27:51 -08:00
inline-callee-update.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-cold-callsite-samplepgo.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-cold.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-combine.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-coverage.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-mergeprof.ll [SampleFDO] Enable sample-profile-top-down-load and sample-profile-merge-inlinee 2020-07-08 09:23:18 -07:00
inline-stats.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
inline-topdown.ll [SampleFDO] Enable sample-profile-top-down-load and sample-profile-merge-inlinee 2020-07-08 09:23:18 -07:00
inline.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
nodebug.ll
nolocinfo.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
offset.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
profile-format-compress.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
profile-format.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
profile-sample-accurate.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
propagate.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
remap.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
remarks.ll [Remarks] Add callsite locations to inline remarks 2020-06-20 23:32:10 -07:00
section-accurate-samplepgo.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
summary.ll
syntax.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
uncompressed-profile-symbol-list.ll [SampleFDO] Add compression support for any section in ExtBinary profile format 2019-10-07 16:12:37 +00:00
use-sample-profile-attr.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
warm-inline-instance.ll [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00