[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2003-04-16-ExprAnalysis.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 16 17:47:00 PDT 2003
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:
2003-04-16-ExprAnalysis.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/IndVarsSimplify/2003-04-16-ExprAnalysis.ll
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/2003-04-16-ExprAnalysis.ll:1.1
*** /dev/null Wed Apr 16 17:46:26 2003
--- llvm/test/Regression/Transforms/IndVarsSimplify/2003-04-16-ExprAnalysis.ll Wed Apr 16 17:46:16 2003
***************
*** 0 ****
--- 1,14 ----
+ ; This is a test case for the expression analysis code, not really indvars.
+ ; It was assuming any constant of int type was a ConstantInteger.
+ ;
+ ; RUN: as < %s | opt -indvars
+
+ %X = global int 7
+
+ void %test(int %A) {
+ br label %Loop
+ Loop:
+ %IV = phi int [%A, %0], [%IVNext, %Loop]
+ %IVNext = add int %IV, cast (int* %X to int)
+ br label %Loop
+ }
More information about the llvm-commits
mailing list