[llvm-commits] CVS: llvm/test/Regression/Transforms/LoopUnroll/2004-05-13-DontUnrollTooMuch.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu May 13 15:43:10 PDT 2004
Changes in directory llvm/test/Regression/Transforms/LoopUnroll:
2004-05-13-DontUnrollTooMuch.ll added (r1.1)
---
Log message:
New testcase that used to cause the unroller to try to unroll the loop 2G times. :(
---
Diffs of the changes: (+15 -0)
Index: llvm/test/Regression/Transforms/LoopUnroll/2004-05-13-DontUnrollTooMuch.ll
diff -c /dev/null llvm/test/Regression/Transforms/LoopUnroll/2004-05-13-DontUnrollTooMuch.ll:1.1
*** /dev/null Thu May 13 15:43:25 2004
--- llvm/test/Regression/Transforms/LoopUnroll/2004-05-13-DontUnrollTooMuch.ll Thu May 13 15:43:15 2004
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | opt -loop-unroll -disable-output
+
+ int %main() {
+ entry:
+ br label %no_exit
+
+ no_exit: ; preds = %entry, %no_exit
+ %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ] ; <uint> [#uses=1]
+ %indvar.next = add uint %indvar, 1 ; <uint> [#uses=2]
+ %exitcond = setne uint %indvar.next, 2147483648 ; <bool> [#uses=1]
+ br bool %exitcond, label %no_exit, label %loopexit
+
+ loopexit: ; preds = %no_exit
+ ret int 0
+ }
More information about the llvm-commits
mailing list