New testcase that used to cause the unroller to try to unroll the loop 2G times. :(
[oota-llvm.git] / test / Transforms / LoopUnroll / 2004-05-13-DontUnrollTooMuch.ll
1 ; RUN: llvm-as < %s | opt -loop-unroll -disable-output
2
3 int %main() {
4 entry:
5         br label %no_exit
6
7 no_exit:                ; preds = %entry, %no_exit
8         %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ]            ; <uint> [#uses=1]
9         %indvar.next = add uint %indvar, 1              ; <uint> [#uses=2]
10         %exitcond = setne uint %indvar.next, 2147483648         ; <bool> [#uses=1]
11         br bool %exitcond, label %no_exit, label %loopexit
12
13 loopexit:               ; preds = %no_exit
14         ret int 0
15 }