Fix PR1424.

When a function has FP, the register scavenging spill slot offset already
was calculated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37371 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lauro Ramos Venancio 2007-05-31 18:27:58 +00:00
parent cb0a660142
commit 8d410b6938

View File

@ -428,7 +428,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// Make sure the special register scavenging spill slot is closest to the // Make sure the special register scavenging spill slot is closest to the
// stack pointer. // stack pointer.
if (RS) { if (RS && !RegInfo->hasFP(Fn)) {
int SFI = RS->getScavengingFrameIndex(); int SFI = RS->getScavengingFrameIndex();
if (SFI >= 0) { if (SFI >= 0) {
// If stack grows down, we need to add size of find the lowest // If stack grows down, we need to add size of find the lowest