diff options
| author | Diego Novillo <dnovillo@google.com> | 2015-11-20 15:39:42 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2015-11-20 15:39:42 +0000 |
| commit | df544a098aa63aca5c1830ac1cfd19fbdb5b9f7f (patch) | |
| tree | 2bd45fc260ee7aea00318eb477870e1e831691ee /llvm/test | |
| parent | 7fa524b4b874529bff9b93b1783bcb29924c782f (diff) | |
| download | bcm5719-llvm-df544a098aa63aca5c1830ac1cfd19fbdb5b9f7f.tar.gz bcm5719-llvm-df544a098aa63aca5c1830ac1cfd19fbdb5b9f7f.zip | |
SamplePGO - Add line offset and discriminator information to sample reports.
While debugging some sampling coverage problems, I found this useful:
When applying samples from a profile, it helps to also know what line
offset and discriminator the sample belongs to. This makes it easy to
correlate against the input profile.
llvm-svn: 253670
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/inline-coverage.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/SampleProfile/inline-coverage.ll b/llvm/test/Transforms/SampleProfile/inline-coverage.ll index 4f87b1661a6..0b97b560a4f 100644 --- a/llvm/test/Transforms/SampleProfile/inline-coverage.ll +++ b/llvm/test/Transforms/SampleProfile/inline-coverage.ll @@ -16,10 +16,10 @@ ; 12 } ; ; CHECK: remark: coverage.cc:10:12: inlined hot callee '_Z3fool' with 172746 samples into 'main' -; CHECK: remark: coverage.cc:9:19: Applied 23478 samples from profile -; CHECK: remark: coverage.cc:10:16: Applied 23478 samples from profile -; CHECK: remark: coverage.cc:4:10: Applied 31878 samples from profile -; CHECK: remark: coverage.cc:11:10: Applied 0 samples from profile +; CHECK: remark: coverage.cc:9:19: 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) +; CHECK: remark: coverage.cc:11:10: Applied 0 samples from profile (offset: 4) ; CHECK: remark: coverage.cc:10:16: most popular destination for conditional branches at coverage.cc:9:3 ; ; There is one sample record with 0 samples at offset 4 in main() that we never |

