Fix PR1146: parameter attributes are longer part of
[oota-llvm.git] / test / Transforms / SimplifyCFG / branch-cond-merge.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -instcombine \
2 ; RUN:   -simplifycfg | llvm-dis | not grep call
3
4 declare void %bar()
5
6 void %test(int %X, int %Y) {
7 entry:
8         %tmp.2 = setne int %X, %Y
9         br bool %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
10
11 shortcirc_next:
12         %tmp.3 = setne int %X, %Y
13         br bool %tmp.3, label %UnifiedReturnBlock, label %then
14
15 then:
16         call void %bar( )
17         ret void
18
19 UnifiedReturnBlock:             ; preds = %entry, %shortcirc_next
20         ret void
21 }
22