1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
llvm-mirror/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
Arthur Eubanks cf44f794e4 [LoopExtract][NewPM] Port -loop-extract to NPM
-loop-extract-single is just -loop-extract on one loop.

-loop-extract depended on -break-crit-edges and -loop-simplify in the
legacy PM, but the NPM doesn't allow specifying pass dependencies like
that, so manually add those passes to the RUN lines where necessary.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D89016
2020-10-13 22:55:42 -07:00

48 lines
1.2 KiB
LLVM

; RUN: opt < %s -loop-simplify -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
}