aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPC64RegisterInfo.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2004-08-27 04:28:10 +0000
committerNate Begeman <natebegeman@mac.com>2004-08-27 04:28:10 +0000
commit5709998993cade99e4aeda1c9d44a1bdf54aa720 (patch)
tree18d0d3c660ca0ca1f1d889bb4f2771800873762b /lib/Target/PowerPC/PPC64RegisterInfo.cpp
parentfec656c44cfec5566f94ff54e1429387aea5a6ce (diff)
Register sizes are in bits, not bytes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC64RegisterInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPC64RegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPC64RegisterInfo.cpp b/lib/Target/PowerPC/PPC64RegisterInfo.cpp
index 304f28c1bd..774e661e62 100644
--- a/lib/Target/PowerPC/PPC64RegisterInfo.cpp
+++ b/lib/Target/PowerPC/PPC64RegisterInfo.cpp
@@ -240,7 +240,7 @@ void PPC64RegisterInfo::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);
+ unsigned GPRSize = getSpillSize(PPC::R1)/8;
unsigned Size = hasFP(MF) ? GPRSize + GPRSize : GPRSize;
NumBytes = (NumBytes+Size+Align-1)/Align*Align;