HomePhabricator

Update entry count for cold calls

Description

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

Details

Committed
david2050Jan 23 2019, 4:55 PM
Reviewer
wmi
Differential Revision
D52845: Update entry count for cold calls
Parents
rL352000: Creating release candidate rc1 from release_800 branch
Branches
Unknown
Tags
Unknown