summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-11 21:47:57 +0000
committerDan Gohman <gohman@apple.com>2008-03-11 21:47:57 +0000
commita8ab8938a724d4ced548103257281c871d0422bd (patch)
tree8d8b54442452fb1f6b6b4bcf51d2041d05f301aa /test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
parent0fb2033f913cb0e2f5d3ec54567e6ae18b1ea3bc (diff)
downloadllvm-a8ab8938a724d4ced548103257281c871d0422bd.tar.gz
llvm-a8ab8938a724d4ced548103257281c871d0422bd.tar.bz2
llvm-a8ab8938a724d4ced548103257281c871d0422bd.tar.xz
Make this test more challenging to help it avoid being
optimized away before it tests what it is intended to test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/PhiBlockMerge2.ll')
-rw-r--r--test/Transforms/SimplifyCFG/PhiBlockMerge2.ll10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll b/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
index 3137fa999c..24b3d118e7 100644
--- a/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
+++ b/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
@@ -5,12 +5,18 @@
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep N:
;
+declare i1 @foo()
+
define i32 @test(i1 %a, i1 %b) {
- br i1 %b, label %N, label %Q
+ %c = call i1 @foo()
+ br i1 %c, label %N, label %P
+P:
+ %d = call i1 @foo()
+ br i1 %d, label %N, label %Q
Q:
br label %N
N:
- %W = phi i32 [0, %0], [1, %Q]
+ %W = phi i32 [0, %0], [1, %Q], [2, %P]
; This block should be foldable into M
br label %M