llvm-project/llvm/test/Transforms/SampleProfile
Dehao Chen 3f56a05ae5 Use the first instruction's count to estimate the funciton's entry frequency.
Summary: In the current implementation, we only have accurate profile count for standalone symbols. For inlined functions, we do not have entry count data because it's not available in LBR. In this patch, we use the first instruction's frequency to estimiate the function's entry count, especially for inlined functions. This may be inaccurate due to debug info in optimized code. However, this is a better estimate than the static 80/20 estimation we have in the current implementation.

Reviewers: tejohnson, davidxl

Reviewed By: tejohnson

Subscribers: sanjoy, llvm-commits, aprantl

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

llvm-svn: 315369
2017-10-10 21:13:50 +00:00
..
Inputs Directly return promoted direct call instead of rely on stripPointerCast. 2017-10-06 17:04:55 +00:00
branch.ll
calls.ll
cov-zero-samples.ll Canonicalize the representation of empty an expression in DIGlobalVariableExpression 2017-08-30 18:06:51 +00:00
coverage-warning.ll
discriminator.ll
early-inline.ll Invoke GetInlineCost for legality check before inline functions in SampleProfileLoader. 2017-09-14 17:29:56 +00:00
entry_counts.ll
fnptr.ll
gcc-simple.ll
import.ll Separate the logic when handling indirect calls in SamplePGO ThinLTO compile phase and other phases. 2017-10-01 05:24:51 +00:00
indirect-call-gcc.ll
indirect-call.ll Use the first instruction's count to estimate the funciton's entry frequency. 2017-10-10 21:13:50 +00:00
inline-act.ll
inline-combine.ll
inline-coverage.ll
inline.ll
nodebug.ll
nolocinfo.ll
offset.ll
propagate.ll
remarks.ll Keep Optimization Remark Yaml in NewPM 2017-08-20 01:30:45 +00:00
summary.ll
syntax.ll