llvm-project/llvm/test/Transforms/SampleProfile/Inputs
Wei Mi 14756b70ee [SampleFDO] Don't mix up the existing indirect call value profile with the new
value profile annotated after inlining.

In https://reviews.llvm.org/D96806 and https://reviews.llvm.org/D97350, we
use the magic number -1 in the value profile to avoid repeated indirect call
promotion to the same target for an indirect call. Function updateIDTMetaData
is used to mark an target as being promoted in the value profile with the
magic number. updateIDTMetaData is also used to update the value profile
when an indirect call is inlined and new inline instance profile should be
applied. For the second case, currently updateIDTMetaData mixes up the
existing value profile of the indirect call with the new profile, leading
to the problematic senario that a target count is larger than the total count
in the value profile.

The patch fixes the problem. When updateIDTMetaData is used to update the
value profile after inlining, all the values in the existing value profile
will be dropped except the values with the magic number counts.

Differential Revision: https://reviews.llvm.org/D98835
2021-03-18 09:54:34 -07:00
..
bad.extbinary.afdo [SampleFDO] Report error when reading a bad/incompatible profile instead of 2021-01-25 10:28:23 -08:00
bad_discriminator_value.prof
bad_fn_header.prof
bad_line_values.prof
bad_mangle.prof
bad_sample_line.prof
bad_samples.prof
branch.prof
calls.prof
cold-indirect-call.prof
cov-zero-samples.prof
coverage-warning.prof
csspgo-import-list.prof [CSSPGO] Load context profile for external functions in PreLink and populate ThinLTO import list 2021-03-15 12:22:15 -07:00
csspgo-import-list.prof.extbin [CSSPGO] Load context profile for external functions in PreLink and populate ThinLTO import list 2021-03-15 12:22:15 -07:00
ctxsplit.extbinary.afdo [SampleFDO] Add the support to split the function profiles with context into 2021-01-19 15:16:19 -08:00
discriminator.prof
einline.prof
entry_counts.prof
entry_counts_cold.prof
flattened.prof
fnptr.binprof
fnptr.prof
function_metadata.compact.afdo
function_metadata.prof
gcc-simple.afdo
indirect-call-csspgo.prof [CSSPGO] Call site prioritized inlining for sample PGO 2021-02-01 23:46:34 -08:00
indirect-call.afdo
indirect-call.compact.afdo
indirect-call.prof
inline-act.prof
inline-callee-update.prof
inline-cold.prof
inline-combine.prof
inline-coverage.prof
inline-hint.prof
inline-mergeprof.md5.prof
inline-mergeprof.prof
inline-replay.txt [Inliner] Change inline remark format and update ReplayInlineAdvisor to use it 2021-01-12 13:43:48 -08:00
inline-topdown.prof
inline.compactbinary.afdo
inline.extbinary.afdo
inline.fixlenmd5.extbinary.afdo [SampleFDO] Store fixed length MD5 in NameTable instead of using ULEB128 if 2020-12-08 16:21:01 -08:00
inline.md5extbinary.afdo
inline.prof
nodebug.prof
nolocinfo.prof
norepeated-icp-2.prof [SampleFDO] Another fix to prevent repeated indirect call promotion in 2021-03-04 18:44:12 -08:00
norepeated-icp-3.prof [SampleFDO] Don't mix up the existing indirect call value profile with the new 2021-03-18 09:54:34 -07:00
norepeated-icp.prof [SampleFDO] Stop repeated indirect call promotion for the same target. 2021-02-18 17:01:32 -08:00
offset.prof
profile-context-order.prof [CSSPGO] Process functions in a top-down order on a dynamic call graph. 2021-02-11 12:36:59 -08:00
profile-context-tracker.prof [CSSPGO] Infrastructure for context-sensitive Sample PGO and Inlining 2020-12-06 11:49:18 -08:00
profile-symbol-list.ll
profile-symbol-list.text [SampleFDO] Add a cutoff flag to control how many symbols will be included 2021-02-27 23:15:31 -08:00
profile-topdown-order.prof [CSSPGO] Process functions in a top-down order on a dynamic call graph. 2021-02-11 12:36:59 -08:00
profsampleacc.extbinary.afdo
propagate.prof
pseudo-probe-func-metadata.prof [CSSPGO] Consume pseudo-probe-based AutoFDO profile 2020-12-16 15:57:18 -08:00
pseudo-probe-inline.prof [CSSPGO] Tweaking inlining with pseudo probes. 2021-02-01 13:56:40 -08:00
pseudo-probe-profile.prof [CSSPGO] Consume pseudo-probe-based AutoFDO profile 2020-12-16 15:57:18 -08:00
pseudo-probe-update.prof [CSSPGO] Introducing distribution factor for pseudo probe. 2021-02-02 11:55:01 -08:00
remap-2.prof
remap.map
remap.prof
remarks-hotness.prof [Remarks][2/2] Expand remarks hotness threshold option support in more tools 2020-11-30 21:55:50 -08:00
remarks.prof
summary.prof
syntax.prof
uniqname.nosuffix.afdo [SampleFDO] Support enabling -funique-internal-linkage-name. 2021-03-09 21:41:40 -08:00
uniqname.suffix.afdo [SampleFDO] Support enabling -funique-internal-linkage-name. 2021-03-09 21:41:40 -08:00
uniqname.suffix.prof [SampleFDO] Support enabling -funique-internal-linkage-name. 2021-03-09 21:41:40 -08:00
use-sample-profile-attr.prof
warm-inline-instance.prof