Codegen (Reg|imm)+&GV as an LEA, because we cannot put it into the immediate field
authorChris Lattner <sabre@nondot.org>
Sun, 9 Jan 2005 20:20:29 +0000 (20:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 9 Jan 2005 20:20:29 +0000 (20:20 +0000)
commitbd9f0eefb230083de2ed009bb0be6c9386a6c04b
treef176c678e42f259757b5fe7e17ff41e9a0172c79
parentabd21828752667fdff5a0c20d591f66de102b3c3
Codegen (Reg|imm)+&GV as an LEA, because we cannot put it into the immediate field
of an ADDri (due to current restrictions on MachineOperand :( ).  This allows
us to generate:

        leal Data+16000, %edx

instead of:

        movl $Data, %edx
        addl $16000, %edx

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