ARM: prefer allocating VFP regs at stride 4 on Darwin.
authorTim Northover <tnorthover@apple.com>
Mon, 3 Aug 2015 17:20:10 +0000 (17:20 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 3 Aug 2015 17:20:10 +0000 (17:20 +0000)
commit8927f6cd0f8d7614e8682a2da08f0a9769be9603
tree5168233bad37daacbf5e2546bad0e4da60ee12e8
parent268a7555856b12015465c2b5c2e513529f4fb32c
ARM: prefer allocating VFP regs at stride 4 on Darwin.

This is necessary for WatchOS support, where the compact unwind format assumes
this kind of layout. For now we only want this on Swift-like CPUs though, where
it's been the Xcode behaviour for ages. Also, since it can expand the prologue
we don't want it at -Oz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243884 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMRegisterInfo.td
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
test/CodeGen/ARM/fold-stack-adjust.ll
test/CodeGen/ARM/vfp-reg-stride.ll [new file with mode: 0644]