mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 18:09:20 +00:00
Don't want to add FramePtr to callee save spill list twice.
llvm-svn: 33727
This commit is contained in:
parent
a22881da40
commit
082e441207
@ -881,13 +881,7 @@ processFunctionBeforeCalleeSavedScan(MachineFunction &MF) const {
|
||||
}
|
||||
}
|
||||
|
||||
if (hasFP(MF)) {
|
||||
MF.changePhyRegUsed(FramePtr, true);
|
||||
NumGPRSpills++;
|
||||
CanEliminateFrame = false;
|
||||
}
|
||||
|
||||
if (!CanEliminateFrame) {
|
||||
if (!CanEliminateFrame || hasFP(MF)) {
|
||||
AFI->setHasStackFrame(true);
|
||||
|
||||
// If LR is not spilled, but at least one of R4, R5, R6, and R7 is spilled.
|
||||
@ -902,7 +896,7 @@ processFunctionBeforeCalleeSavedScan(MachineFunction &MF) const {
|
||||
|
||||
// Darwin ABI requires FP to point to the stack slot that contains the
|
||||
// previous FP.
|
||||
if (STI.isTargetDarwin()) {
|
||||
if (STI.isTargetDarwin() || hasFP(MF)) {
|
||||
MF.changePhyRegUsed(FramePtr, true);
|
||||
NumGPRSpills++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user