1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
2012-10-21 02:38:01 +00:00

28 lines
666 B
LLVM

; RUN: opt < %s -loop-vectorize -dce
; Check that we don't fall into an infinite loop.
define void @test() nounwind {
entry:
br label %for.body
for.body:
%0 = phi i32 [ 1, %entry ], [ 0, %for.body ]
br label %for.body
}
define void @test2() nounwind {
entry:
br label %for.body
for.body: ; preds = %for.body, %entry
%indvars.iv47 = phi i64 [ 0, %entry ], [ %indvars.iv.next48, %for.body ]
%0 = phi i32 [ 1, %entry ], [ 0, %for.body ]
%indvars.iv.next48 = add i64 %indvars.iv47, 1
br i1 undef, label %for.end, label %for.body
for.end: ; preds = %for.body
unreachable
}