2008-03-18 03:45:45 +00:00
|
|
|
; RUN: llvm-as < %s | opt -simplifycfg -instcombine \
|
2007-04-15 09:21:47 +00:00
|
|
|
; RUN: -simplifycfg | llvm-dis | not grep call
|
2004-05-01 23:35:21 +00:00
|
|
|
|
2008-03-18 03:45:45 +00:00
|
|
|
declare void @bar()
|
2004-05-01 23:35:21 +00:00
|
|
|
|
2008-03-18 03:45:45 +00:00
|
|
|
define void @test(i32 %X, i32 %Y) {
|
2004-05-01 23:35:21 +00:00
|
|
|
entry:
|
2008-03-18 03:45:45 +00:00
|
|
|
%tmp.2 = icmp ne i32 %X, %Y ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
|
|
|
|
shortcirc_next: ; preds = %entry
|
|
|
|
%tmp.3 = icmp ne i32 %X, %Y ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.3, label %UnifiedReturnBlock, label %then
|
|
|
|
then: ; preds = %shortcirc_next
|
|
|
|
call void @bar( )
|
|
|
|
ret void
|
|
|
|
UnifiedReturnBlock: ; preds = %shortcirc_next, %entry
|
2004-05-01 23:35:21 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|