diff options
| author | Easwaran Raman <eraman@google.com> | 2016-05-26 22:57:11 +0000 |
|---|---|---|
| committer | Easwaran Raman <eraman@google.com> | 2016-05-26 22:57:11 +0000 |
| commit | 5fe04a1d8e9dc41720ff90561a6136ef7e8c6504 (patch) | |
| tree | 1f65799e04145a45104efd4ab894645e085b40b9 /llvm/test/Transforms/PGOProfile | |
| parent | ceeb52112763ed8a3288d481fb5bf2304d191f19 (diff) | |
| download | bcm5719-llvm-5fe04a1d8e9dc41720ff90561a6136ef7e8c6504.tar.gz bcm5719-llvm-5fe04a1d8e9dc41720ff90561a6136ef7e8c6504.zip | |
Attach profile summary in IR based instrumentation pass.
Differential revision: http://reviews.llvm.org/D20655
llvm-svn: 270933
Diffstat (limited to 'llvm/test/Transforms/PGOProfile')
| -rw-r--r-- | llvm/test/Transforms/PGOProfile/branch1.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/Transforms/PGOProfile/branch1.ll b/llvm/test/Transforms/PGOProfile/branch1.ll index 317fae2d88d..380a293ca0e 100644 --- a/llvm/test/Transforms/PGOProfile/branch1.ll +++ b/llvm/test/Transforms/PGOProfile/branch1.ll @@ -28,7 +28,7 @@ entry: br i1 %cmp, label %if.then, label %if.end ; USE: br i1 %cmp, label %if.then, label %if.end ; USE-SAME: !prof ![[BW_ENTRY:[0-9]+]] -; USE: ![[BW_ENTRY]] = !{!"branch_weights", i32 2, i32 1} +; USE-DAG: ![[BW_ENTRY]] = !{!"branch_weights", i32 2, i32 1} if.then: ; GEN: if.then: @@ -42,3 +42,5 @@ if.end: %retv = phi i32 [ %add, %if.then ], [ %i, %entry ] ret i32 %retv } +; USE-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}} +; USE-DAG: {{![0-9]+}} = !{!"DetailedSummary", {{![0-9]+}}} |

