Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/entry_counts_cold.prof
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

21 lines
220 B
Plaintext

top:200:100
1: 100 foo:100
2: 100
3: 2
4: 100
1: foo:100
2: 100
3: 100 bar:100
4: 100
3: bar:2
1: 2
2: 2
foo:200:150
2: 150
3: 150 bar:150
4: 150
bar:450:300
1: 300 baz:300
2: 300
3: 300