[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp PPC64RegisterInfo.cpp
Nate Begeman
natebegeman at mac.com
Thu Aug 26 21:28:20 PDT 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC32RegisterInfo.cpp updated: 1.3 -> 1.4
PPC64RegisterInfo.cpp updated: 1.3 -> 1.4
---
Log message:
Register sizes are in bits, not bytes
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.3 llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.4
--- llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.3 Sun Aug 22 03:09:17 2004
+++ llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp Thu Aug 26 23:28:10 2004
@@ -238,7 +238,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);
+ unsigned GPRSize = getSpillSize(PPC::R1)/8;
unsigned Size = hasFP(MF) ? GPRSize + GPRSize : GPRSize;
NumBytes = (NumBytes+Size+Align-1)/Align*Align;
@@ -278,7 +278,7 @@
// Get the number of bytes allocated from the FrameInfo...
unsigned NumBytes = MFI->getStackSize();
- unsigned GPRSize = getSpillSize(PPC::R31);
+ unsigned GPRSize = getSpillSize(PPC::R31)/8;
if (NumBytes != 0) {
if (hasFP(MF)) {
Index: llvm/lib/Target/PowerPC/PPC64RegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPC64RegisterInfo.cpp:1.3 llvm/lib/Target/PowerPC/PPC64RegisterInfo.cpp:1.4
--- llvm/lib/Target/PowerPC/PPC64RegisterInfo.cpp:1.3 Sat Aug 21 14:51:17 2004
+++ llvm/lib/Target/PowerPC/PPC64RegisterInfo.cpp Thu Aug 26 23:28:10 2004
@@ -240,7 +240,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);
+ unsigned GPRSize = getSpillSize(PPC::R1)/8;
unsigned Size = hasFP(MF) ? GPRSize + GPRSize : GPRSize;
NumBytes = (NumBytes+Size+Align-1)/Align*Align;
More information about the llvm-commits
mailing list