Last round of fixes for movw + movt global address codegen.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 21 Jan 2011 18:55:51 +0000 (18:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 21 Jan 2011 18:55:51 +0000 (18:55 +0000)
commit53519f015e3e84e9f57b677cc8724805a6009b73
tree9dc5278d12bc25af77dc2cab022413ef2b034741
parent859f8183639346378ed29d1e04a4b070ebc7e97f
Last round of fixes for movw + movt global address codegen.
1. Fixed ARM pc adjustment.
2. Fixed dynamic-no-pic codegen
3. CSE of pc-relative load of global addresses.

It's now enabled by default for Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123991 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMBaseInfo.h
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/ARMSubtarget.cpp
test/CodeGen/ARM/load-global.ll [new file with mode: 0644]
test/CodeGen/ARM/machine-licm.ll
test/CodeGen/ARM/tail-opts.ll
test/CodeGen/Thumb2/load-global.ll [deleted file]
test/CodeGen/Thumb2/machine-licm.ll
test/CodeGen/Thumb2/thumb2-ifcvt3.ll