2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -loop-extract -disable-output
|
2004-03-18 06:55:29 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define void @sendMTFValues() {
|
2004-03-18 06:55:29 +01:00
|
|
|
entry:
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %then.1, label %endif.1
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
then.1: ; preds = %entry
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %loopentry.6.preheader, label %else.0
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
endif.1: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.0: ; preds = %then.1
|
|
|
|
ret void
|
|
|
|
|
|
|
|
loopentry.6.preheader: ; preds = %then.1
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %endif.7.preheader, label %loopexit.9
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
endif.7.preheader: ; preds = %loopentry.6.preheader
|
2008-03-01 10:15:35 +01:00
|
|
|
%tmp.183 = add i32 0, -1 ; <i32> [#uses=1]
|
2004-03-18 06:55:29 +01:00
|
|
|
br label %endif.7
|
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
endif.7: ; preds = %loopexit.15, %endif.7.preheader
|
|
|
|
br i1 false, label %loopentry.10, label %loopentry.12
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
loopentry.10: ; preds = %endif.7
|
|
|
|
br label %loopentry.12
|
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
loopentry.12: ; preds = %loopentry.10, %endif.7
|
|
|
|
%ge.2.1 = phi i32 [ 0, %loopentry.10 ], [ %tmp.183, %endif.7 ] ; <i32> [#uses=0]
|
|
|
|
br i1 false, label %loopexit.14, label %no_exit.11
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
no_exit.11: ; preds = %loopentry.12
|
|
|
|
ret void
|
|
|
|
|
|
|
|
loopexit.14: ; preds = %loopentry.12
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %loopexit.15, label %no_exit.14
|
2004-03-18 06:55:29 +01:00
|
|
|
|
|
|
|
no_exit.14: ; preds = %loopexit.14
|
|
|
|
ret void
|
|
|
|
|
|
|
|
loopexit.15: ; preds = %loopexit.14
|
2008-03-01 10:15:35 +01:00
|
|
|
br i1 false, label %endif.7, label %loopexit.9
|
2004-03-18 06:55:29 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
loopexit.9: ; preds = %loopexit.15, %loopentry.6.preheader
|
2004-03-18 06:55:29 +01:00
|
|
|
ret void
|
|
|
|
}
|