2003-12-09 22:05:08 +00:00
|
|
|
; This testcase checks to make sure the sinker does not cause problems with
|
|
|
|
; critical edges.
|
|
|
|
|
2008-03-19 03:47:13 +00:00
|
|
|
; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep Exit
|
2003-12-09 22:05:08 +00:00
|
|
|
|
2008-03-19 03:47:13 +00:00
|
|
|
define void @test() {
|
2003-12-09 22:05:08 +00:00
|
|
|
Entry:
|
2008-03-19 03:47:13 +00:00
|
|
|
br i1 false, label %Loop, label %Exit
|
|
|
|
Loop: ; preds = %Loop, %Entry
|
|
|
|
%X = add i32 0, 1 ; <i32> [#uses=1]
|
|
|
|
br i1 false, label %Loop, label %Exit
|
|
|
|
Exit: ; preds = %Loop, %Entry
|
|
|
|
%Y = phi i32 [ 0, %Entry ], [ %X, %Loop ] ; <i32> [#uses=0]
|
2003-12-09 22:05:08 +00:00
|
|
|
ret void
|
|
|
|
}
|
2008-03-19 03:47:13 +00:00
|
|
|
|