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)
commit910dde7ab2f725732222387af0d93f898afec42b
tree6231d430981c1c2cf284ffde57078179ba2c3e71
parent4fb46cb818f43805205cf05d7064cb443e04f69c
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.

llvm-svn: 243884
llvm/lib/Target/ARM/ARMRegisterInfo.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/test/CodeGen/ARM/fold-stack-adjust.ll
llvm/test/CodeGen/ARM/vfp-reg-stride.ll [new file with mode: 0644]