[llvm-commits] [llvm] r84792 - /llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Jim Grosbach grosbach at apple.com
Wed Oct 21 15:59:56 PDT 2009


Author: grosbach
Date: Wed Oct 21 17:59:56 2009
New Revision: 84792

URL: http://llvm.org/viewvc/llvm-project?rev=84792&view=rev
Log:
The spill restore needs to be resolved to the SP/FP just like the spill

Modified:
    llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=84792&r1=84791&r2=84792&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Wed Oct 21 17:59:56 2009
@@ -310,6 +310,8 @@
 
     // Restore the scavenged register before its use (or first terminator).
     TII->loadRegFromStackSlot(*MBB, UseMI, SReg, ScavengingFrameIndex, RC);
+    II = prior(UseMI);
+    TRI->eliminateFrameIndex(II, SPAdj, NULL, this);
   }
 
   ScavengeRestore = prior(UseMI);





More information about the llvm-commits mailing list