[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 30 10:17:11 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32RegisterInfo.cpp updated: 1.25 -> 1.26
---
Log message:
constant fold these calls
---
Diffs of the changes: (+2 -2)
PPC32RegisterInfo.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.25 llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.26
--- llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.25 Thu Sep 29 20:31:52 2005
+++ llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp Fri Sep 30 12:16:59 2005
@@ -307,7 +307,7 @@
// 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 @@
// 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)) {
More information about the llvm-commits
mailing list