[llvm-commits] CVS: llvm/lib/Target/README.txt
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 3 13:25:35 PST 2006
Changes in directory llvm/lib/Target:
README.txt updated: 1.1 -> 1.2
---
Log message:
add a note
---
Diffs of the changes: (+4 -0)
README.txt | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.1 llvm/lib/Target/README.txt:1.2
--- llvm/lib/Target/README.txt:1.1 Fri Feb 3 00:21:43 2006
+++ llvm/lib/Target/README.txt Fri Feb 3 15:25:23 2006
@@ -64,4 +64,8 @@
//===---------------------------------------------------------------------===//
+For dag combiner and instcombine:
+Fold: "A / (B << N)" where B is a power of 2, to "A >> (N + log2(B))".
+Fold: "A % (B << N)" where B is a power of 2, to "A & ((B << N) - 1)".
+//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list