llvm.org GIT mirror llvm / 488b72b
New testcase that used to cause the unroller to try to unroll the loop 2G times. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13563 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-unroll -disable-output
1
2 int %main() {
3 entry:
4 br label %no_exit
5
6 no_exit: ; preds = %entry, %no_exit
7 %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ] ; [#uses=1]
8 %indvar.next = add uint %indvar, 1 ; [#uses=2]
9 %exitcond = setne uint %indvar.next, 2147483648 ; [#uses=1]
10 br bool %exitcond, label %no_exit, label %loopexit
11
12 loopexit: ; preds = %no_exit
13 ret int 0
14 }