diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-30 17:16:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-30 17:16:59 +0000 |
commit | 5802be13e0eb0f6730b75fee2ea0b3cf6cb148a4 (patch) | |
tree | c54c57082d2fa1c6aa3b69e8fd71770675c30701 /lib/Target/PowerPC/PPCRegisterInfo.cpp | |
parent | 56bcae0de9d51645193bdcdd4e8bdcf80b523276 (diff) |
constant fold these calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 2e2318fe36..acaa6ceabd 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -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)) { |