constant fold these calls

llvm-svn: 23558
This commit is contained in:
Chris Lattner 2005-09-30 17:16:59 +00:00
parent bb1c9ecb17
commit 88025e17c5
1 changed files with 2 additions and 2 deletions

View 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)) {