1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
llvm-mirror/test/Analysis/Dominators/2007-07-11-SplitBlock.ll
Arthur Eubanks 54c69d097e [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch
As mentioned in
http://lists.llvm.org/pipermail/llvm-dev/2020-July/143395.html,
loop-unswitch has not been ported to the NPM. Instead people are using
simple-loop-unswitch.

Pin all tests in Transforms/LoopUnswitch to legacy PM and replace all
other uses of loop-unswitch with simple-loop-unswitch.

One test that didn't fit into the above was
2014-06-21-congruent-constant.ll which seems to only pass with
loop-unswitch. That is also pinned to legacy PM.

Now all tests containing "-loop-unswitch" anywhere in the test succeed with
NPM turned on by default.

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D85360
2020-08-06 10:56:00 -07:00

22 lines
537 B
LLVM

; RUN: opt < %s -loop-rotate -simple-loop-unswitch -disable-output
define i32 @stringSearch_Clib(i32 %count) {
entry:
br i1 false, label %bb36, label %bb44
cond_true20: ; preds = %bb36
%tmp33 = add i32 0, 0 ; <i32> [#uses=1]
br label %bb36
bb36: ; preds = %cond_true20, %entry
%c.2 = phi i32 [ %tmp33, %cond_true20 ], [ 0, %entry ] ; <i32> [#uses=1]
br i1 false, label %cond_true20, label %bb41
bb41: ; preds = %bb36
%c.2.lcssa = phi i32 [ %c.2, %bb36 ] ; <i32> [#uses=0]
ret i32 0
bb44: ; preds = %entry
ret i32 0
}