llvm-project/llvm/test/Transforms/SampleProfile
Dehao Chen 62b9c33e1e Import all inlined indirect call targets for SamplePGO.
Summary: In the ThinLTO compilation, if a function is inlined in the profiling binary, we need to inline it before annotation. If the callee is not available in the primary module, a first step is needed to import that callee function. For the current implementation, if the call is an indirect call, which has been promoted to >1 targets and inlined, SamplePGO will only import one target with the largest sample count. This patch fixed the bug to import all targets instead.

Reviewers: tejohnson, davidxl

Reviewed By: tejohnson

Subscribers: sanjoy, llvm-commits, mehdi_amini

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

llvm-svn: 313678
2017-09-19 21:18:14 +00:00
..
Inputs Import all inlined indirect call targets for SamplePGO. 2017-09-19 21:18:14 +00:00
branch.ll Do not set branch weight if the branch weight annotation is present. 2017-03-23 14:43:10 +00:00
calls.ll Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
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 Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
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 Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
gcc-simple.ll
import.ll Import all inlined indirect call targets for SamplePGO. 2017-09-19 21:18:14 +00:00
indirect-call-gcc.ll Fix an obvious bug in SampleProfileReaderGCC. 2017-02-22 17:27:21 +00:00
indirect-call.ll Handle profile mismatch correctly for SamplePGO. 2017-09-19 18:26:54 +00:00
inline-act.ll
inline-combine.ll
inline-coverage.ll [OptDiag] Updating Remarks in SampleProfile 2017-08-11 21:12:04 +00:00
inline.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
nodebug.ll Before sample pgo annotation, do not inline a function that has no debug info. (NFC) 2016-11-22 22:50:01 +00:00
nolocinfo.ll
offset.ll
propagate.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
remarks.ll Keep Optimization Remark Yaml in NewPM 2017-08-20 01:30:45 +00:00
summary.ll Only sets profile summary when it was not preset. 2016-12-14 22:06:49 +00:00
syntax.ll