Fix PR1424.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 31 May 2007 18:27:58 +0000 (18:27 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 31 May 2007 18:27:58 +0000 (18:27 +0000)
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

lib/CodeGen/PrologEpilogInserter.cpp

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