Changes in directory llvm/lib/Target/X86:
README.txt updated: 1.156 -> 1.157 --- Log message: add a note --- Diffs of the changes: (+22 -0) README.txt | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+) Index: llvm/lib/Target/X86/README.txt diff -u llvm/lib/Target/X86/README.txt:1.156 llvm/lib/Target/X86/README.txt:1.157 --- llvm/lib/Target/X86/README.txt:1.156 Mon Feb 12 15:20:26 2007 +++ llvm/lib/Target/X86/README.txt Thu Mar 1 23:04:52 2007 @@ -920,3 +920,25 @@ Though this probably isn't worth it. //===---------------------------------------------------------------------===// + +We need to teach the codegen to convert two-address INC instructions to LEA +when the flags are dead. For example, on X86-64, compile: + +int foo(int A, int B) { + return A+1; +} + +to: + +_foo: + leal 1(%edi), %eax + ret + +instead of: + +_foo: + incl %edi + movl %edi, %eax + ret + +//===---------------------------------------------------------------------===// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits