summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/compact-binary-profile.ll
diff options
context:
space:
mode:
authorTaewook Oh <twoh@fb.com>2019-04-03 19:54:43 +0000
committerTaewook Oh <twoh@fb.com>2019-04-03 19:54:43 +0000
commita960f89962883b46d68529bc8a4612d40967c5a0 (patch)
treef83fc88f67c0f49eca447744a2da23848b072e1d /llvm/test/Transforms/SampleProfile/compact-binary-profile.ll
parentffa857c7a6550c75b3f6dab8272592b4640425cf (diff)
downloadbcm5719-llvm-a960f89962883b46d68529bc8a4612d40967c5a0.tar.gz
bcm5719-llvm-a960f89962883b46d68529bc8a4612d40967c5a0.zip
[ProfileSummary] Count callsite samples when computing total samples.
Summary: Currently ProfileSummaryBuilder doesn't count into callsite samples when computing total samples. Considering that ProfileSummaryInfo is used to checked the hotness of not only body samples but also callsite samples (from SampleProfileLoader), I think the callsite sample counts should be considered when computing total samples. Reviewers: eraman, danielcdh, wmi Subscribers: hiraditya, jdoerfert, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59835 llvm-svn: 357627
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/compact-binary-profile.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/compact-binary-profile.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SampleProfile/compact-binary-profile.ll b/llvm/test/Transforms/SampleProfile/compact-binary-profile.ll
index 9b786ef1d71..3b0a2a47c31 100644
--- a/llvm/test/Transforms/SampleProfile/compact-binary-profile.ll
+++ b/llvm/test/Transforms/SampleProfile/compact-binary-profile.ll
@@ -26,7 +26,7 @@
; CHECK: br i1 %cmp, label %while.body, label %while.end{{.*}} !prof ![[IDX1:[0-9]*]]
; CHECK: br i1 %cmp1, label %if.then, label %if.else{{.*}} !prof ![[IDX2:[0-9]*]]
; CHECK: call i32 (i8*, ...) @printf{{.*}} !prof ![[IDX3:[0-9]*]]
-; CHECK: = !{!"TotalCount", i64 10944}
+; CHECK: = !{!"TotalCount", i64 26781}
; CHECK: = !{!"MaxCount", i64 5553}
; CHECK: ![[IDX1]] = !{!"branch_weights", i32 5392, i32 163}
; CHECK: ![[IDX2]] = !{!"branch_weights", i32 5280, i32 113}
OpenPOWER on IntegriCloud