summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/remarks.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/remarks.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/remarks.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/remarks.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/SampleProfile/remarks.ll b/llvm/test/Transforms/SampleProfile/remarks.ll
index 3ecaa534296..89a4bbe46d0 100644
--- a/llvm/test/Transforms/SampleProfile/remarks.ll
+++ b/llvm/test/Transforms/SampleProfile/remarks.ll
@@ -21,7 +21,7 @@
; We are expecting foo() to be inlined in main() (almost all the cycles are
; spent inside foo).
-; CHECK: remark: remarks.cc:13:21: inlined hot callee '_Z3foov' into 'main'
+; CHECK: remark: remarks.cc:13:21: inlined callee '_Z3foov' into 'main'
; The back edge for the loop is the hottest edge in the loop subgraph.
; CHECK: remark: remarks.cc:6:9: most popular destination for conditional branches at remarks.cc:5:3
@@ -31,12 +31,12 @@
; Checking to see if YAML file is generated and contains remarks
;YAML: --- !Passed
-;YAML-NEXT: Pass: sample-profile
-;YAML-NEXT: Name: HotInline
+;YAML-NEXT: Pass: sample-profile-inline
+;YAML-NEXT: Name: InlineSuccess
;YAML-NEXT: DebugLoc: { File: remarks.cc, Line: 13, Column: 21 }
;YAML-NEXT: Function: main
;YAML-NEXT: Args:
-;YAML-NEXT: - String: 'inlined hot callee '''
+;YAML-NEXT: - String: 'inlined callee '''
;YAML-NEXT: - Callee: _Z3foov
;YAML-NEXT: DebugLoc: { File: remarks.cc, Line: 3, Column: 0 }
;YAML-NEXT: - String: ''' into '''
OpenPOWER on IntegriCloud