OSDN Git Service

ARM: use correct offset from base pointer (r6) in call frame regions.
authorTim Northover <tnorthover@apple.com>
Fri, 7 Dec 2018 13:43:55 +0000 (13:43 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 7 Dec 2018 13:43:55 +0000 (13:43 +0000)
commit2ae30c46b80a45df8342ca93799f9f111d23e40b
tree7ac450993729b3be0e1e8689385aa30774cc130f
parent7135d8b482d3d0d1a8c50111eebb9b207e92a8bc
ARM: use correct offset from base pointer (r6) in call frame regions.

When we had dynamic call frames (i.e. sp adjustment around each call) we
were including that adjustment into offsets calculated based on r6, even
though it's only sp that changes. This led to incorrect stack slot
accesses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348591 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/alloca-align.ll
test/CodeGen/ARM/nonreserved-callframe-with-basereg.mir [new file with mode: 0644]