ARM: fix folding stack adjustment (again again again...)
authorTim Northover <tnorthover@apple.com>
Wed, 23 Sep 2015 22:21:09 +0000 (22:21 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 23 Sep 2015 22:21:09 +0000 (22:21 +0000)
commitcdc6a8eab9d54c3b942ecc6eeabd6d4c8fff2ee7
treeef8d1da6b6ea705137db98b338c0fbdd78b561c6
parent54a3f636d86a21c8cc08bff63e2735d7e9ac3e2a
ARM: fix folding stack adjustment (again again again...)

This time, the issue is that we weren't accounting for the possibility that
aligned DPRs could have been stored after the final "push" in a prologue. When
that happened we effectively moved a "sub sp, #N" from below the aligned stores
to above them, and everything went to pot.

To make it worse, I'd actually committed something testing that we produced
wrong code, so the test update is tiny.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/fold-stack-adjust.ll