summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-02 05:04:52 +0000
committerChris Lattner <sabre@nondot.org>2007-03-02 05:04:52 +0000
commitfc2f52128a106c99b0f2388f9954119dc29701fd (patch)
tree518e6d3ecf0f69c622126ae713649bb74a1a0a0a /llvm/lib
parenta0d8da67c12836df1c1d066e585d2b2794c45b9e (diff)
downloadbcm5719-llvm-fc2f52128a106c99b0f2388f9954119dc29701fd.tar.gz
bcm5719-llvm-fc2f52128a106c99b0f2388f9954119dc29701fd.zip
add a note
llvm-svn: 34837
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/README.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt
index 554c49beba1..1c067f53717 100644
--- a/llvm/lib/Target/X86/README.txt
+++ b/llvm/lib/Target/X86/README.txt
@@ -920,3 +920,25 @@ LBB1_1:
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
+
+//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud