Fix an infinite loop in the loop-vectorizer.
[oota-llvm.git] / test / Transforms / LoopVectorize / 2012-10-20-infloop.ll
1 ; RUN: opt < %s  -loop-vectorize -dce
2
3 ; Check that we don't fall into an infinite loop.
4 define void @test() nounwind {
5 entry:
6  br label %for.body
7
8 for.body:
9  %0 = phi i32 [ 1, %entry ], [ 0, %for.body ]
10  br label %for.body
11 }
12