mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 19:19:26 +00:00
Missed part of prev. patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b812b0131
commit
e1c9aabd77
@ -261,10 +261,12 @@ void SystemZRegisterInfo::emitEpilogue(MachineFunction &MF,
|
|||||||
// During callee-saved restores emission stack frame was not yet finialized
|
// During callee-saved restores emission stack frame was not yet finialized
|
||||||
// (and thus - the stack size was unknown). Tune the offset having full stack
|
// (and thus - the stack size was unknown). Tune the offset having full stack
|
||||||
// size in hands.
|
// size in hands.
|
||||||
if (SystemZMFI->getCalleeSavedFrameSize()) {
|
if (StackSize || MFI->hasCalls()) {
|
||||||
assert((MBBI->getOpcode() == SystemZ::MOV64rmm ||
|
assert((MBBI->getOpcode() == SystemZ::MOV64rmm ||
|
||||||
MBBI->getOpcode() == SystemZ::MOV64rm) &&
|
MBBI->getOpcode() == SystemZ::MOV64rm) &&
|
||||||
"Expected to see callee-save register restore code");
|
"Expected to see callee-save register restore code");
|
||||||
|
assert(MF.getRegInfo().isPhysRegUsed(SystemZ::R15D) &&
|
||||||
|
"Invalid stack frame calculation!");
|
||||||
|
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
MachineInstr &MI = *MBBI;
|
MachineInstr &MI = *MBBI;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user