summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/inline-coverage.ll
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2019-11-21 23:59:41 -0800
committerWenlei He <aktoon@gmail.com>2019-12-11 21:37:21 -0800
commitd275a064871763ab3a7712c74712d2fd1d0bef5d (patch)
treeca0ccd65177e0378527d266273c07709acfb0a2d /llvm/test/Transforms/SampleProfile/inline-coverage.ll
parent3e34c3f4b6b533adeeee772c25562572a5d87b13 (diff)
downloadbcm5719-llvm-d275a064871763ab3a7712c74712d2fd1d0bef5d.tar.gz
bcm5719-llvm-d275a064871763ab3a7712c74712d2fd1d0bef5d.zip
[AutoFDO] Statistic for context sensitive profile guided inlining
Summary: AutoFDO compilation has two places that do inlining - the sample profile loader that does inlining with context sensitive profile, and the regular inliner as CGSCC pass. Ideally we want most inlining to come from sample profile loader as that is driven by context sensitive profile and also retains context sensitivity after inlining. However the reality is most of the inlining actually happens during regular inliner. To track the number of inline instances from sample profile loader and help move more inlining to sample profile loader, I'm adding statistics and optimization remarks for sample profile loader's inlining. Reviewers: wmi, davidxl Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70584
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/inline-coverage.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/inline-coverage.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SampleProfile/inline-coverage.ll b/llvm/test/Transforms/SampleProfile/inline-coverage.ll
index 7e189545190..134bbe8b80d 100644
--- a/llvm/test/Transforms/SampleProfile/inline-coverage.ll
+++ b/llvm/test/Transforms/SampleProfile/inline-coverage.ll
@@ -16,7 +16,7 @@
; 11 return sum > 0 ? 0 : 1;
; 12 }
;
-; CHECK: remark: coverage.cc:10:12: inlined hot callee '_Z3fool' into 'main'
+; CHECK: remark: coverage.cc:10:12: previous inlining reattempted for hotness: '_Z3fool' into 'main'
; CHECK: remark: coverage.cc:9:21: Applied 23478 samples from profile (offset: 2.1)
; CHECK: remark: coverage.cc:10:16: Applied 23478 samples from profile (offset: 3)
; CHECK: remark: coverage.cc:4:10: Applied 31878 samples from profile (offset: 1)
OpenPOWER on IntegriCloud