constant fold these calls
authorChris Lattner <sabre@nondot.org>
Fri, 30 Sep 2005 17:16:59 +0000 (17:16 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 30 Sep 2005 17:16:59 +0000 (17:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23558 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCRegisterInfo.cpp

index 2e2318fe3637d76553a027eb040923ee740d7b50..acaa6ceabd6a103f5dcf047ebac18f799dc03e92 100644 (file)
@@ -307,7 +307,7 @@ void PPC32RegisterInfo::emitPrologue(MachineFunction &MF) const {
   // Add the size of R1 to  NumBytes size for the store of R1 to the bottom
   // of the stack and round the size to a multiple of the alignment.
   unsigned Align = MF.getTarget().getFrameInfo()->getStackAlignment();
-  unsigned GPRSize = getSpillSize(PPC::R1)/8;
+  unsigned GPRSize = 4;
   unsigned Size = hasFP(MF) ? GPRSize + GPRSize : GPRSize;
   NumBytes = (NumBytes+Size+Align-1)/Align*Align;
 
@@ -347,7 +347,7 @@ void PPC32RegisterInfo::emitEpilogue(MachineFunction &MF,
 
   // Get the number of bytes allocated from the FrameInfo...
   unsigned NumBytes = MFI->getStackSize();
-  unsigned GPRSize = getSpillSize(PPC::R31)/8;
+  unsigned GPRSize = 4;
 
   if (NumBytes != 0) {
     if (hasFP(MF)) {