[llvm-commits] CVS: llvm/lib/Target/README.txt
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 4 00:45:03 PST 2006
Changes in directory llvm/lib/Target:
README.txt updated: 1.10 -> 1.11
---
Log message:
Add a note
---
Diffs of the changes: (+17 -0)
README.txt | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.10 llvm/lib/Target/README.txt:1.11
--- llvm/lib/Target/README.txt:1.10 Fri Mar 3 19:19:34 2006
+++ llvm/lib/Target/README.txt Sat Mar 4 02:44:51 2006
@@ -101,3 +101,20 @@
This would be a win on ppc32, but not x86 or ppc64.
+//===---------------------------------------------------------------------===//
+
+Pull add through mul/shift to handle this:
+
+int foo(int P[4][4], int i) {
+ return P[i+2][1];
+}
+
+better than this (no addi needed):
+
+_foo:
+ addi r2, r4, 2
+ slwi r2, r2, 4
+ add r2, r3, r2
+ lwz r3, 4(r2)
+ blr
+
More information about the llvm-commits
mailing list