1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Transforms/CodeExtractor/2004-03-17-UpdatePHIsOutsideRegion.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

24 lines
721 B
LLVM

; RUN: opt < %s -loop-simplify -loop-extract -disable-output
define void @maketree() {
entry:
br i1 false, label %no_exit.1, label %loopexit.0
no_exit.1: ; preds = %endif, %expandbox.entry, %entry
br i1 false, label %endif, label %expandbox.entry
expandbox.entry: ; preds = %no_exit.1
br i1 false, label %loopexit.1, label %no_exit.1
endif: ; preds = %no_exit.1
br i1 false, label %loopexit.1, label %no_exit.1
loopexit.1: ; preds = %endif, %expandbox.entry
%ic.i.0.0.4 = phi i32 [ 0, %expandbox.entry ], [ 0, %endif ] ; <i32> [#uses=0]
ret void
loopexit.0: ; preds = %entry
ret void
}