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