Compile CodeGen/X86/lea-3.ll:test2 to:
authorChris Lattner <sabre@nondot.org>
Wed, 28 Mar 2007 18:12:31 +0000 (18:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Mar 2007 18:12:31 +0000 (18:12 +0000)
commit995f55036fd1b420cf5c5d45096a8e36736303cd
tree87aae5e5fa2c7ca8d56d3de6ae1c5bff8f4ed13e
parent57b82b78450452e2e9a61c8fbeaa55dbfdb7795a
Compile CodeGen/X86/lea-3.ll:test2 to:

_test3:
        leaq (,%rdi,4), %rax
        orq %rdi, %rax
        ret

instead of:
_test2:
        movq %rdi, %rax
        shlq $2, %rax
        orq %rdi, %rax
        ret

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35434 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp