blob: ca5f3e4ab44ae7d4598419dd398b0ea0ec9e0489 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -instcombine -simplifycfg | llvm-dis | not grep call
Chris Lattner470221c2004-05-01 23:35:21 +00002
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