diff options
| author | Taewook Oh <twoh@fb.com> | 2019-04-03 19:54:43 +0000 |
|---|---|---|
| committer | Taewook Oh <twoh@fb.com> | 2019-04-03 19:54:43 +0000 |
| commit | a960f89962883b46d68529bc8a4612d40967c5a0 (patch) | |
| tree | f83fc88f67c0f49eca447744a2da23848b072e1d /llvm/test/Transforms/SampleProfile/Inputs | |
| parent | ffa857c7a6550c75b3f6dab8272592b4640425cf (diff) | |
| download | bcm5719-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/Inputs')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo | bin | 184 -> 185 bytes | |||
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/Inputs/summary.prof | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo Binary files differindex 6271b3609e9..c9fde769982 100644 --- a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo +++ b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo diff --git a/llvm/test/Transforms/SampleProfile/Inputs/summary.prof b/llvm/test/Transforms/SampleProfile/Inputs/summary.prof index 49a5b57d5e6..e80b9bc171b 100644 --- a/llvm/test/Transforms/SampleProfile/Inputs/summary.prof +++ b/llvm/test/Transforms/SampleProfile/Inputs/summary.prof @@ -2,3 +2,8 @@ bar:100:3 1: 100 foo:200:1 1: 200 +baz:600:1 + 1: 0 + 2: 300 + 1: bar:300 + 1: 300 |

