CodeGen: enable mov.w/mov.t pairs with minsize for WoA
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 20:06:33 +0000 (20:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 20:06:33 +0000 (20:06 +0000)
commit3455c40f918b7e869ed83420a7e84d01e2fccb9f
treeb64ea71f4553e1488892cf0ddf82b3d5181693bb
parenta15b05e1aa18920a8f664a2af4c77874bc82474e
CodeGen: enable mov.w/mov.t pairs with minsize for WoA

Windows on ARM uses COFF/PE which is intrinsically position independent.  For
the case of 32-bit immediates, use a pair-wise relocation as otherwise we may
exceed the range of operators.  This fixes a code generation crash when using
-Oz when targeting Windows on ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210814 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMSubtarget.h
test/CodeGen/ARM/Windows/global-minsize.ll [new file with mode: 0644]