llvm-project/llvm/test/tools/llvm-profdata
Rong Xu 077baefc99 [llvm-profdata] Use flattening sample profile in profile supplementation
We need to flatten the SampleFDO profile in profile supplementation
because the InstrFDO profile does not have inlined callsite counters.
Without flattening profile, FDO optimizations are not stable:
we will not supplement the second generation profile when the modified
functions are all inlined.

This patch fixes this issue: we will flatten the profile for functions
that appears in FDO profile.

Note that we only need to find the hot/warm functions in SampleFDO
profile, so we will not perform a full flatten. We will use
a DFS traversal to compute the accumulated entry count and max bodycount.
This is much cheaper than full flattening.

Differential Revision: https://reviews.llvm.org/D138893
2022-11-29 22:23:47 -08:00
..
Inputs [llvm-profdata] Use flattening sample profile in profile supplementation 2022-11-29 22:23:47 -08:00
binary-ids-padding.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
c-general.test
compact-sample.proftext
compat.proftext
count-mismatch.proftext
cs-sample-nested-profile.test [CSSPGO][CSProfileConverter] Remove call target samples when including callee samples into caller. 2022-05-13 09:19:32 -07:00
cs-sample-profile.test [llvm-profdata] Print out section flags for FunctionMetadata section 2021-11-02 17:59:22 -07:00
cs-sample-trimmer.test [CSSPGO] Use nested context-sensitive profile. 2021-12-14 14:40:25 -08:00
csprof-dump.test
cutoff.test
errors.test [InstrProf][Correlate] Verify debug info with llvm-profdata show 2022-01-27 10:11:04 -08:00
forward-compatible.test Add "REQUIRES: zlib" in forward-compatible.test since it handles compressed file. 2021-09-24 15:35:07 -07:00
gcc-gcov-sample-profile.test
general.proftext
hash-mismatch.proftext
header-directives.test
inline-samples.test
input-dir.test
input-filenames.test
instr-remap.test
insufficient-binary-ids-size.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
invalid-profdata.test
invalid-profile-gen-zeros.proftext
large-binary-id-size.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
lit.local.cfg
malformed-not-space-for-another-header.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
malformed-num-counters-zero.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
malformed-ptr-to-counter-array.test [InstrProf][NFC] Do not assume size of counter type 2022-01-14 11:29:11 -08:00
memop-size-prof.proftext
memprof-basic.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-inline.test Fix reverse-iteration buildbot. 2022-08-19 14:21:05 -07:00
memprof-merge.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-multi.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-pic.test [memprof] Return an error for unsupported symbolization. 2022-06-27 09:43:26 -07:00
merge-incompatible.test
merge-probe-profile.test [llvm-profdata] Print out section flags for FunctionMetadata section 2021-11-02 17:59:22 -07:00
merge_empty_profile.test
misaligned-binary-ids-size.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
multiple-inputs.test
multiple-profdata-merge.test
nocompress.test
overflow-instr.test [llvm-profdata] Improve profile supplementation 2022-08-29 16:50:42 -07:00
overflow-sample.test
overlap.test
overlap_cs.test
overlap_vp.test
profile-symbol-list-compress.test
profile-symbol-list.test
pseudo_count.test [llvm-profdata] Improve profile supplementation 2022-08-29 16:50:42 -07:00
raw-32-bits-be.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-32-bits-le.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-64-bits-be.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-64-bits-le.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-magic-but-no-header.test
raw-two-profiles.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
roundtrip-compress.test
roundtrip.test
same-filename.test
sample-fs.test
sample-hot-func-list.test [llvm-profdata] Extend support of --topn to sample profiles 2021-09-24 16:42:46 -07:00
sample-overlap.test
sample-profile-basic.test
sample-profile-json.test [llvm-profdata] Rename show flag to --show-format 2022-10-07 11:35:07 -07:00
sample-remap.test
sample-summary.test
show-covered.test [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
show-instr-level.test
show-prof-info.test
suppl-instr-with-sample-flatten.test [llvm-profdata] Use flattening sample profile in profile supplementation 2022-11-29 22:23:47 -08:00
suppl-instr-with-sample-static-func.test [llvm-profdata] Improve profile supplementation 2022-08-29 16:50:42 -07:00
suppl-instr-with-sample.test [llvm-profdata] Improve profile supplementation 2022-08-29 16:50:42 -07:00
text-dump.test
text-format-errors.test [memprof] Extend llvm-profdata to display MemProf profile summaries. 2021-11-30 10:45:26 -08:00
threaded-count-mismatch.test
value-prof.proftext
weight-instr.test
weight-sample.test