2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -simplifycfg -S | not grep call
|
2004-05-01 22:36:24 +00:00
|
|
|
|
2008-03-18 03:45:45 +00:00
|
|
|
declare void @bar()
|
2004-05-01 22:36:24 +00:00
|
|
|
|
2008-03-18 03:45:45 +00:00
|
|
|
define void @test(i32 %X, i32 %Y) {
|
2004-05-01 22:36:24 +00:00
|
|
|
entry:
|
2008-03-18 03:45:45 +00:00
|
|
|
%tmp.2 = icmp slt i32 %X, %Y ; <i1> [#uses=2]
|
|
|
|
br i1 %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
|
2004-05-01 22:36:24 +00:00
|
|
|
shortcirc_next: ; preds = %entry
|
2008-03-18 03:45:45 +00:00
|
|
|
br i1 %tmp.2, label %UnifiedReturnBlock, label %then
|
2004-05-01 22:36:24 +00:00
|
|
|
then: ; preds = %shortcirc_next
|
2008-03-18 03:45:45 +00:00
|
|
|
call void @bar( )
|
|
|
|
ret void
|
|
|
|
UnifiedReturnBlock: ; preds = %shortcirc_next, %entry
|
2004-05-01 22:36:24 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|