mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 14:03:14 +00:00
[AArch64] Fix bug in large stack spill slot handling (PR27717)
Summary: Fix bug in MachO path where a frame index offset would not be reserved for handling large frames when an extra non-used callee-save register was saved. In the case where the extra register is reserved or not a GPR (e.g. %FP in the MachO case), this would lead to the register scavenger later failing when called from PrologEpilogInserter. Reviewers: t.p.northover Subscribers: aemerson, rengolin, mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D20185 llvm-svn: 269697
This commit is contained in:
parent
511487a013
commit
7dd4166698
@ -1126,7 +1126,9 @@ void AArch64FrameLowering::determineCalleeSaves(MachineFunction &MF,
|
||||
// FIXME: the usual format is actually better if unwinding isn't needed.
|
||||
if (produceCompactUnwindFrame(MF) && !SavedRegs.test(PairedReg)) {
|
||||
SavedRegs.set(PairedReg);
|
||||
ExtraCSSpill = true;
|
||||
if (AArch64::GPR64RegClass.contains(PairedReg) &&
|
||||
!RegInfo->isReservedReg(MF, PairedReg))
|
||||
ExtraCSSpill = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user