[llvm-commits] CVS: llvm/test/Regression/Transforms/ArgumentPromotion/recursion.ll
Owen Anderson
resistor at mac.com
Sat Sep 2 14:19:58 PDT 2006
Changes in directory llvm/test/Regression/Transforms/ArgumentPromotion:
recursion.ll added (r1.1)
---
Log message:
Make ArgumentPromotion handle recursive functions that pass pointers in their recursive calls.
---
Diffs of the changes: (+16 -0)
recursion.ll | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/Transforms/ArgumentPromotion/recursion.ll
diff -c /dev/null llvm/test/Regression/Transforms/ArgumentPromotion/recursion.ll:1.1
*** /dev/null Sat Sep 2 16:19:54 2006
--- llvm/test/Regression/Transforms/ArgumentPromotion/recursion.ll Sat Sep 2 16:19:44 2006
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-as < %s | opt -argpromotion | llvm-dis | grep x.val
+ ; ModuleID = 'recursive2.bc'
+
+ implementation ; Functions:
+
+ internal int %foo(int* %x) {
+ entry:
+ %tmp.foo = load int* %x
+ ret int %tmp.foo
+ }
+
+ int %bar(int* %x) {
+ entry:
+ %tmp3 = call int %foo( int* %x) ; <int>[#uses=1]
+ ret int %tmp3
+ }
\ No newline at end of file
More information about the llvm-commits
mailing list