Revert r42653 and forward-port the code that lets INC64_32r be
authorDan Gohman <gohman@apple.com>
Tue, 6 Jan 2009 23:34:46 +0000 (23:34 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 Jan 2009 23:34:46 +0000 (23:34 +0000)
commitcca2983291bb5502085148164ad77e8017dd8cde
treeb76c8174e691a3183382694496676092ad541987
parent21213e75b57f87182cbfa7cd8f55a37bcb7c4097
Revert r42653 and forward-port the code that lets INC64_32r be
converted to LEA64_32r in x86's convertToThreeAddress. This
replaces code like this:
   movl  %esi, %edi
   inc   %edi
with this:
   lea   1(%rsi), %edi
which appears to be beneficial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/2to3-inc64.ll [new file with mode: 0644]