2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -simplifycfg -instcombine \
|
2009-09-08 22:41:33 +00:00
|
|
|
; RUN: -simplifycfg -S | 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
|
|
|
|
}
|
|
|
|
|