ARM: correctly expand LDR-lit based globals.
authorTim Northover <tnorthover@apple.com>
Wed, 10 Dec 2014 23:40:50 +0000 (23:40 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 10 Dec 2014 23:40:50 +0000 (23:40 +0000)
commit19734e7811cfa345a2ef1909cfc2f60ca3728797
tree4e1cec224a8066c8b204957a646e92f89b3289ad
parentde68a563bc0c63a4d043769609867ec0cc2083dd
ARM: correctly expand LDR-lit based globals.

Quite a major error here: the expansions for the Pseudos with and without
folded load were mixed up. Fortunately it only affects ARM-mode, when not using
movw/movt, on Darwin. I'm guessing no-one actually uses that combination.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/cse-ldrlit.ll
test/CodeGen/ARM/globals.ll
test/CodeGen/ARM/stack_guard_remat.ll