[llvm-commits] CVS: llvm/test/Regression/Transforms/IPConstantProp/recursion.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 10 11:43:45 PST 2004
Changes in directory llvm/test/Regression/Transforms/IPConstantProp:
recursion.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/Transforms/IPConstantProp/recursion.ll
diff -c /dev/null llvm/test/Regression/Transforms/IPConstantProp/recursion.ll:1.1
*** /dev/null Wed Nov 10 13:43:41 2004
--- llvm/test/Regression/Transforms/IPConstantProp/recursion.ll Wed Nov 10 13:43:31 2004
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | opt -ipconstprop -deadargelim | llvm-dis | not grep %X
+
+ implementation
+
+ internal int %foo(int %X) {
+ %Y = call int %foo( int %X )
+ %Z = add int %Y, 1
+ ret int %Z
+ }
+
+ void %bar() {
+ call int %foo( int 17 ) ; <int>:0 [#uses=0]
+ ret void
+ }
More information about the llvm-commits
mailing list