summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-30 17:16:59 +0000
committerChris Lattner <sabre@nondot.org>2005-09-30 17:16:59 +0000
commit88025e17c59aa0434aae1d44b2f86ff7b3050b88 (patch)
treecd50ff92c61798543adee8a5bdea7536c0d3a76e /llvm/lib
parentbb1c9ecb173af0c7a992736eff86ff05138eb2d0 (diff)
downloadbcm5719-llvm-88025e17c59aa0434aae1d44b2f86ff7b3050b88.tar.gz
bcm5719-llvm-88025e17c59aa0434aae1d44b2f86ff7b3050b88.zip
constant fold these calls
llvm-svn: 23558
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
index 2e2318fe363..acaa6ceabd6 100644
--- a/llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32RegisterInfo.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)) {
OpenPOWER on IntegriCloud