2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -loop-extract -disable-output
|
2004-03-18 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define void @maketree() {
|
2004-03-18 06:33:39 +01:00
|
|
|
entry:
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %no_exit.1, label %loopexit.0
|
2004-03-18 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
no_exit.1: ; preds = %endif, %expandbox.entry, %entry
|
|
|
|
br i1 false, label %endif, label %expandbox.entry
|
2004-03-18 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
expandbox.entry: ; preds = %no_exit.1
|
|
|
|
br i1 false, label %loopexit.1, label %no_exit.1
|
2004-03-18 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
endif: ; preds = %no_exit.1
|
|
|
|
br i1 false, label %loopexit.1, label %no_exit.1
|
2004-03-18 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01: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 06:33:39 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
loopexit.0: ; preds = %entry
|
|
|
|
ret void
|
2004-03-18 06:33:39 +01:00
|
|
|
}
|
2008-03-01 10:15:35 +01:00
|
|
|
|