OSDN Git Service

[PPC] Set SP after loading data from stack frame, if no red zone is present
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 22 Sep 2016 17:22:43 +0000 (17:22 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 22 Sep 2016 17:22:43 +0000 (17:22 +0000)
commit7b83fe6d98ad44fec8929a63fbcdf5c36acca0e3
tree6a2c5e1b05680f02c2e9d722757920dcd38a03dc
parent20bb0322fd381dd7e265eaa05b7fb1c292278abe
[PPC] Set SP after loading data from stack frame, if no red zone is present

Follow-up to r280705: Make sure that the SP is only restored after all data
is loaded from the stack frame, if there is no red zone.

This completes the fix for https://llvm.org/bugs/show_bug.cgi?id=26519.

Differential Revision: https://reviews.llvm.org/D24466

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282174 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
test/CodeGen/PowerPC/ppc32-pic-large.ll
test/CodeGen/PowerPC/ppc32-pic.ll
test/CodeGen/PowerPC/stack-no-redzone.ll [new file with mode: 0644]
test/CodeGen/PowerPC/stack-realign.ll