[llvm-commits] CVS: llvm/lib/Target/X86/README.txt
Evan Cheng
evan.cheng at apple.com
Tue Feb 14 00:25:45 PST 2006
Changes in directory llvm/lib/Target/X86:
README.txt updated: 1.51 -> 1.52
---
Log message:
Add a entry.
---
Diffs of the changes: (+17 -0)
README.txt | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.51 llvm/lib/Target/X86/README.txt:1.52
--- llvm/lib/Target/X86/README.txt:1.51 Thu Feb 9 23:48:15 2006
+++ llvm/lib/Target/X86/README.txt Tue Feb 14 02:25:32 2006
@@ -426,3 +426,20 @@
//===---------------------------------------------------------------------===//
Use fisttp to do FP to integer conversion whenever it is available.
+
+//===---------------------------------------------------------------------===//
+
+Instead of the following for memset char*, 1, 10:
+
+ movl $16843009, 4(%edx)
+ movl $16843009, (%edx)
+ movw $257, 8(%edx)
+
+It might be better to generate
+
+ movl $16843009, %eax
+ movl %eax, 4(%edx)
+ movl %eax, (%edx)
+ movw al, 8(%edx)
+
+when we can spare a register. It reduces code size.
More information about the llvm-commits
mailing list