2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -loop-extract -disable-output
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @maketree() {
|
2004-03-18 13:33:39 +08:00
|
|
|
entry:
|
2008-03-01 17:15:35 +08:00
|
|
|
br i1 false, label %no_exit.1, label %loopexit.0
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
no_exit.1: ; preds = %endif, %expandbox.entry, %entry
|
|
|
|
br i1 false, label %endif, label %expandbox.entry
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
expandbox.entry: ; preds = %no_exit.1
|
|
|
|
br i1 false, label %loopexit.1, label %no_exit.1
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
endif: ; preds = %no_exit.1
|
|
|
|
br i1 false, label %loopexit.1, label %no_exit.1
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
loopexit.1: ; preds = %endif, %expandbox.entry
|
|
|
|
%ic.i.0.0.4 = phi i32 [ 0, %expandbox.entry ], [ 0, %endif ] ; <i32> [#uses=0]
|
|
|
|
ret void
|
2004-03-18 13:33:39 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
loopexit.0: ; preds = %entry
|
|
|
|
ret void
|
2004-03-18 13:33:39 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|