blob: 6b306d232e04189464141fbce4d0a4a0c45bf324 [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -loop-extract -disable-output
Chris Lattner4c7fcbf2004-03-18 05:33:39 +00002
Tanya Lattner5640bd12008-03-01 09:15:35 +00003define void @maketree() {
Chris Lattner4c7fcbf2004-03-18 05:33:39 +00004entry:
Tanya Lattner5640bd12008-03-01 09:15:35 +00005 br i1 false, label %no_exit.1, label %loopexit.0
Chris Lattner4c7fcbf2004-03-18 05:33:39 +00006
Tanya Lattner5640bd12008-03-01 09:15:35 +00007no_exit.1: ; preds = %endif, %expandbox.entry, %entry
8 br i1 false, label %endif, label %expandbox.entry
Chris Lattner4c7fcbf2004-03-18 05:33:39 +00009
Tanya Lattner5640bd12008-03-01 09:15:35 +000010expandbox.entry: ; preds = %no_exit.1
11 br i1 false, label %loopexit.1, label %no_exit.1
Chris Lattner4c7fcbf2004-03-18 05:33:39 +000012
Tanya Lattner5640bd12008-03-01 09:15:35 +000013endif: ; preds = %no_exit.1
14 br i1 false, label %loopexit.1, label %no_exit.1
Chris Lattner4c7fcbf2004-03-18 05:33:39 +000015
Tanya Lattner5640bd12008-03-01 09:15:35 +000016loopexit.1: ; preds = %endif, %expandbox.entry
17 %ic.i.0.0.4 = phi i32 [ 0, %expandbox.entry ], [ 0, %endif ] ; <i32> [#uses=0]
18 ret void
Chris Lattner4c7fcbf2004-03-18 05:33:39 +000019
Tanya Lattner5640bd12008-03-01 09:15:35 +000020loopexit.0: ; preds = %entry
21 ret void
Chris Lattner4c7fcbf2004-03-18 05:33:39 +000022}
Tanya Lattner5640bd12008-03-01 09:15:35 +000023