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

Evan Cheng evan.cheng at apple.com
Mon Dec 4 19:58:38 PST 2006



Changes in directory llvm/lib/Target/X86:

README-X86-64.txt updated: 1.1 -> 1.2
---
Log message:

Update

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

 README-X86-64.txt |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/lib/Target/X86/README-X86-64.txt
diff -u llvm/lib/Target/X86/README-X86-64.txt:1.1 llvm/lib/Target/X86/README-X86-64.txt:1.2
--- llvm/lib/Target/X86/README-X86-64.txt:1.1	Fri Sep  8 01:48:29 2006
+++ llvm/lib/Target/X86/README-X86-64.txt	Mon Dec  4 21:58:23 2006
@@ -252,6 +252,16 @@
 possible. The above is actually one byte shorter than
         movq $_dst, _ptr
 
+A better example is the code from PR1018. We are generating:
+	leaq xcalloc2(%rip), %rax
+	movq %rax, 8(%rsp)
+when we should be generating:
+       	movq $xcalloc2, 8(%rsp)
+
+The reason the better codegen isn't done now is support for static small
+code model in JIT mode. The JIT cannot ensure that all GV's are placed in the
+lower 4G so we are not treating GV labels as 32-bit values.
+
 //===---------------------------------------------------------------------===//
 
 Right now the asm printer assumes GlobalAddress are accessed via RIP relative






More information about the llvm-commits mailing list