[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx
Chris Lattner
lattner at cs.uiuc.edu
Wed Dec 10 14:41:03 PST 2003
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:
2003-12-10-RemoveInstrCrash.llx added (r1.1)
---
Log message:
A new testcase, reduced by bugpoint
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx:1.1
*** /dev/null Wed Dec 10 14:40:04 2003
--- llvm/test/Regression/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx Wed Dec 10 14:39:53 2003
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -indvars -disable-output
+
+ void %test() {
+ entry:
+ %inc.2 = add int 1, 1 ; <int> [#uses=1]
+ br bool false, label %no_exit, label %loopexit
+
+ no_exit: ; preds = %entry, %no_exit
+ %j.0.pn = phi int [ %inc.3, %no_exit ], [ %inc.2, %entry ] ; <int> [#uses=1]
+ %k.0.pn = phi int [ %inc.4, %no_exit ], [ 1, %entry ] ; <int> [#uses=1]
+ %inc.3 = add int %j.0.pn, 1 ; <int> [#uses=1]
+ %inc.4 = add int %k.0.pn, 1 ; <int> [#uses=1]
+ br bool false, label %no_exit, label %loopexit
+
+ loopexit: ; preds = %entry, %no_exit
+ ret void
+ }
More information about the llvm-commits
mailing list