blob: 10270c29fc5d19f1435df0e9865968402386c637 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep call
2
3declare void %bar()
4
5void %test(int %X, int %Y) {
6entry:
7 %tmp.2 = setlt int %X, %Y ; <bool> [#uses=2]
8 br bool %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
9
10shortcirc_next: ; preds = %entry
11 br bool %tmp.2, label %UnifiedReturnBlock, label %then
12
13then: ; preds = %shortcirc_next
14 call void %bar( )
15 ret void
16
17UnifiedReturnBlock: ; preds = %entry, %shortcirc_next
18 ret void
19}
20