llvm-project/llvm/test/Transforms/SampleProfile/Inputs
David Callahan d2eeb2516d Update entry count for cold calls
Summary:
Profile sample files include the number of times each entry or inlined
call site is sampled. This is translated into the entry count metadta
on functions.

When sample data is being read, if a call site that was inlined
in the sample program is considered cold and not inlined, then
the entry count of the out-of-line functions does not reflect
the current compilation.

In this patch, we note call sites where the function was not inlined
and as a last action of the sample profile loading, we update the
called function's entry count to reflect the calls from these
call sites which are not included in the profile file.

Reviewers: danielcdh, wmi, Kader, modocache

Reviewed By: wmi

Subscribers: davidxl, eraman, llvm-commits

Differential Revision: https://reviews.llvm.org/D52845

llvm-svn: 352001
2019-01-24 00:55:23 +00: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
cov-zero-samples.prof
coverage-warning.prof
discriminator.prof
einline.prof
entry_counts.prof
entry_counts_cold.prof Update entry count for cold calls 2019-01-24 00:55:23 +00:00
flattened.prof [SampleFDO] Skip profile reading when flattened profile used in ThinLTO postlink 2019-01-17 20:48:34 +00:00
fnptr.binprof
fnptr.prof
function_metadata.compact.afdo [SampleFDO] Add FunctionOffsetTable in compact binary format profile. 2018-09-14 20:52:59 +00:00
function_metadata.prof [SampleFDO] Make sample profile loader unaware of compact format change. 2018-09-06 22:03:37 +00:00
gcc-simple.afdo
indirect-call.afdo
indirect-call.compact.afdo [SampleFDO] Add FunctionOffsetTable in compact binary format profile. 2018-09-14 20:52:59 +00:00
indirect-call.prof
inline-act.prof
inline-combine.prof
inline-coverage.prof
inline-hint.prof
inline.compactbinary.afdo [SampleFDO] Add FunctionOffsetTable in compact binary format profile. 2018-09-14 20:52:59 +00:00
inline.prof
nodebug.prof
nolocinfo.prof
offset.prof
propagate.prof
remap.map Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:47 +00:00
remap.prof Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:47 +00:00
remarks.prof
summary.prof
syntax.prof
warm-inline-instance.prof