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