llvm-project/llvm/test/Transforms/SampleProfile
Dehao Chen a60cdd3881 Add function importing info from samplepgo profile to the module summary.
Summary: For SamplePGO, the profile may contain cross-module inline stacks. As we need to make sure the profile annotation happens when all the hot inline stacks are expanded, we need to pass this info to the module importer so that it can import proper functions if necessary. This patch implemented this feature by emitting cross-module targets as part of function entry metadata. In the module-summary phase, the metadata is used to build call edges that points to functions need to be imported.

Reviewers: mehdi_amini, tejohnson

Reviewed By: tejohnson

Subscribers: davidxl, llvm-commits

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

llvm-svn: 296498
2017-02-28 18:09:44 +00:00
..
Inputs Add function importing info from samplepgo profile to the module summary. 2017-02-28 18:09:44 +00:00
branch.ll Fine tuning of sample profile propagation algorithm. 2016-08-12 16:22:12 +00:00
calls.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
cov-zero-samples.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
coverage-warning.ll [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00
discriminator.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
early-inline.ll Verifier: Disallow a line number without a file in DISubprogram 2017-02-17 23:57:42 +00:00
entry_counts.ll Fine tuning of sample profile propagation algorithm. 2016-08-12 16:22:12 +00:00
fnptr.ll Change the basic block weight calculation algorithm to use max instead of voting. 2016-09-21 16:26:51 +00:00
gcc-simple.ll [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00
import.ll Add function importing info from samplepgo profile to the module summary. 2017-02-28 18:09:44 +00:00
indirect-call-gcc.ll Fix an obvious bug in SampleProfileReaderGCC. 2017-02-22 17:27:21 +00:00
indirect-call.ll Fix the samplepgo indirect call promotion bug: we should not promote a direct call. 2017-02-06 23:33:15 +00:00
inline-act.ll Pass AssumptionCacheTracker from SampleProfileLoader to Inliner 2016-06-20 20:53:40 +00:00
inline-combine.ll [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00
inline-coverage.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +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 [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00
offset.ll Fine tuning of sample profile propagation algorithm. 2016-08-12 16:22:12 +00:00
propagate.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
remarks.ll [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00
summary.ll Only sets profile summary when it was not preset. 2016-12-14 22:06:49 +00:00
syntax.ll [PM] Port the Sample FDO to new PM (part-2) 2016-05-27 23:20:16 +00:00