ARM: correctly calculate the offset of FP in its push.
authorTim Northover <tnorthover@apple.com>
Fri, 14 Nov 2014 22:45:31 +0000 (22:45 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 14 Nov 2014 22:45:31 +0000 (22:45 +0000)
commitd96893fd3dcd3d93a35e07d18d0d1454c0d075f2
tree99e493867d32254d6971776b4b57f1d692984636
parent9aa6fd59b395d428e6d860609f214e1ce34b9e3a
ARM: correctly calculate the offset of FP in its push.

When we folded the DPR alignment gap into a push, we weren't noting the extra
distance from the beginning of the push to the FP, and so FP ended up pointing
at an incorrect offset.

The .cfi_def_cfa_offset directives are still wrong in this case, but I think
that can be improved by refactoring.

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