blob: 55cf4b8cc22483ca4ad3d1a424f544087285c322 [file] [log] [blame]
Chris Lattner470221c2004-05-01 23:35:21 +00001; RUN: llvm-as < %s | opt -simplifycfg -instcombine -simplifycfg | llvm-dis | not grep call
2
3declare void %bar()
4
5void %test(int %X, int %Y) {
6entry:
7 %tmp.2 = setne int %X, %Y
8 br bool %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
9
10shortcirc_next:
11 %tmp.3 = setne int %X, %Y
12 br bool %tmp.3, label %UnifiedReturnBlock, label %then
13
14then:
15 call void %bar( )
16 ret void
17
18UnifiedReturnBlock: ; preds = %entry, %shortcirc_next
19 ret void
20}
21