diff options
| author | Xinliang David Li <davidxl@google.com> | 2016-05-27 23:20:16 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2016-05-27 23:20:16 +0000 |
| commit | d38392ecd619f983baef5082e9e941904703d556 (patch) | |
| tree | 3b793f39a64a383ea18b37904c278d7c0e965daa /llvm/test/Transforms/SampleProfile/fnptr.ll | |
| parent | ea2aef4a1d4beded20033fa4fc223936c7ffe5d8 (diff) | |
| download | bcm5719-llvm-d38392ecd619f983baef5082e9e941904703d556.tar.gz bcm5719-llvm-d38392ecd619f983baef5082e9e941904703d556.zip | |
[PM] Port the Sample FDO to new PM (part-2)
llvm-svn: 271072
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/fnptr.ll')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/fnptr.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SampleProfile/fnptr.ll b/llvm/test/Transforms/SampleProfile/fnptr.ll index abb4f7dea63..540ddbd79c9 100644 --- a/llvm/test/Transforms/SampleProfile/fnptr.ll +++ b/llvm/test/Transforms/SampleProfile/fnptr.ll @@ -5,6 +5,9 @@ ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/fnptr.prof | opt -analyze -branch-prob | FileCheck %s ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/fnptr.binprof | opt -analyze -branch-prob | FileCheck %s +; 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 0x33d4a4c1 / 0x80000000 = 40.49% |

