diff options
| author | Dehao Chen <dehao@google.com> | 2016-08-12 16:22:12 +0000 |
|---|---|---|
| committer | Dehao Chen <dehao@google.com> | 2016-08-12 16:22:12 +0000 |
| commit | c0a1e432c7565e28f437757cc31d6efe09db874b (patch) | |
| tree | 670e6733a48623ede37b515fb9bf360644340972 /llvm/test/Transforms/SampleProfile/fnptr.ll | |
| parent | 4a1e87d9c6c62a3c08982193ccec0540487b0156 (diff) | |
| download | bcm5719-llvm-c0a1e432c7565e28f437757cc31d6efe09db874b.tar.gz bcm5719-llvm-c0a1e432c7565e28f437757cc31d6efe09db874b.zip | |
Fine tuning of sample profile propagation algorithm.
Summary: The refined propagation algorithm is more accurate and robust.
Reviewers: davidxl, dnovillo
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D23224
llvm-svn: 278522
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/fnptr.ll')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/fnptr.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Transforms/SampleProfile/fnptr.ll b/llvm/test/Transforms/SampleProfile/fnptr.ll index b41fec7aed1..5359eee831f 100644 --- a/llvm/test/Transforms/SampleProfile/fnptr.ll +++ b/llvm/test/Transforms/SampleProfile/fnptr.ll @@ -8,12 +8,12 @@ ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/fnptr.prof | opt -analyze -branch-prob | FileCheck %s ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/fnptr.binprof | opt -analyze -branch-prob | FileCheck %s -; CHECK: edge for.body3 -> if.then probability is 0x1a4f3959 / 0x80000000 = 20.55% -; CHECK: edge for.body3 -> if.else probability is 0x65b0c6a7 / 0x80000000 = 79.45% -; CHECK: edge for.inc -> for.inc12 probability is 0x20dc8dc9 / 0x80000000 = 25.67% -; CHECK: edge for.inc -> for.body3 probability is 0x5f237237 / 0x80000000 = 74.33% -; CHECK: edge for.inc12 -> for.end14 probability is 0x00000000 / 0x80000000 = 0.00% -; CHECK: edge for.inc12 -> for.cond1.preheader probability is 0x80000000 / 0x80000000 = 100.00% +; CHECK: edge for.body3 -> if.then probability is 0x1a56a56a / 0x80000000 = 20.58% +; CHECK: edge for.body3 -> if.else probability is 0x65a95a96 / 0x80000000 = 79.42% +; CHECK: edge for.inc -> for.inc12 probability is 0x000fdc50 / 0x80000000 = 0.05% +; CHECK: edge for.inc -> for.body3 probability is 0x7ff023b0 / 0x80000000 = 99.95% +; CHECK: edge for.inc12 -> for.end14 probability is 0x40000000 / 0x80000000 = 50.00% +; CHECK: edge for.inc12 -> for.cond1.preheader probability is 0x40000000 / 0x80000000 = 50.00% ; Original C++ test case. ; |

