[llvm-commits] CVS: llvm/lib/Target/README.txt

Chris Lattner sabre at nondot.org
Sat May 5 15:44:26 PDT 2007



Changes in directory llvm/lib/Target:

README.txt updated: 1.60 -> 1.61
---
Log message:

add a note


---
Diffs of the changes:  (+25 -0)

 README.txt |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+)


Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.60 llvm/lib/Target/README.txt:1.61
--- llvm/lib/Target/README.txt:1.60	Sat May  5 17:29:06 2007
+++ llvm/lib/Target/README.txt	Sat May  5 17:44:08 2007
@@ -424,3 +424,28 @@
                             [ %tmp.9, %then.1 ]
         ret int %result.0
 }
+
+//===---------------------------------------------------------------------===//
+
+Argument promotion should promote arguments for recursive functions, like 
+this:
+
+; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | grep x.val
+
+implementation   ; Functions:
+
+internal int %foo(int* %x) {
+entry:
+        %tmp = load int* %x
+        %tmp.foo = call int %foo(int *%x)
+        ret int %tmp.foo
+}
+
+int %bar(int* %x) {
+entry:
+        %tmp3 = call int %foo( int* %x)                ; <int>[#uses=1]
+        ret int %tmp3
+}
+
+
+






More information about the llvm-commits mailing list