blob: 01fe54be29ac7dddea17dca5a7820a06eb524ffe [file] [log] [blame]
; RUN: opt < %s -loop-extract -disable-output
define void @sendMTFValues() {
entry:
br i1 false, label %then.1, label %endif.1
then.1: ; preds = %entry
br i1 false, label %loopentry.6.preheader, label %else.0
endif.1: ; preds = %entry
ret void
else.0: ; preds = %then.1
ret void
loopentry.6.preheader: ; preds = %then.1
br i1 false, label %endif.7.preheader, label %loopexit.9
endif.7.preheader: ; preds = %loopentry.6.preheader
%tmp.183 = add i32 0, -1 ; <i32> [#uses=1]
br label %endif.7
endif.7: ; preds = %loopexit.15, %endif.7.preheader
br i1 false, label %loopentry.10, label %loopentry.12
loopentry.10: ; preds = %endif.7
br label %loopentry.12
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
no_exit.11: ; preds = %loopentry.12
ret void
loopexit.14: ; preds = %loopentry.12
br i1 false, label %loopexit.15, label %no_exit.14
no_exit.14: ; preds = %loopexit.14
ret void
loopexit.15: ; preds = %loopexit.14
br i1 false, label %endif.7, label %loopexit.9
loopexit.9: ; preds = %loopexit.15, %loopentry.6.preheader
ret void
}