Debug Info Testing: updated to use NULL instead of "i32 0" in a few fields.
[oota-llvm.git] / test / Transforms / SimplifyCFG / branch-cond-merge.ll
1 ; RUN: opt < %s -simplifycfg -instcombine \
2 ; RUN:   -simplifycfg -S | not grep call
3
4 declare void @bar()
5
6 define void @test(i32 %X, i32 %Y) {
7 entry:
8         %tmp.2 = icmp ne i32 %X, %Y             ; <i1> [#uses=1]
9         br i1 %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
10 shortcirc_next:         ; preds = %entry
11         %tmp.3 = icmp ne i32 %X, %Y             ; <i1> [#uses=1]
12         br i1 %tmp.3, label %UnifiedReturnBlock, label %then
13 then:           ; preds = %shortcirc_next
14         call void @bar( )
15         ret void
16 UnifiedReturnBlock:             ; preds = %shortcirc_next, %entry
17         ret void
18 }
19