diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-08-27 04:28:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-08-27 04:28:10 +0000 |
commit | 5709998993cade99e4aeda1c9d44a1bdf54aa720 (patch) | |
tree | 18d0d3c660ca0ca1f1d889bb4f2771800873762b /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | fec656c44cfec5566f94ff54e1429387aea5a6ce (diff) | |
download | llvm-5709998993cade99e4aeda1c9d44a1bdf54aa720.tar.gz llvm-5709998993cade99e4aeda1c9d44a1bdf54aa720.tar.bz2 llvm-5709998993cade99e4aeda1c9d44a1bdf54aa720.tar.xz |
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/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index c71755612e..1aee69f9cc 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -181,11 +181,11 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) { int FrameIdx; if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) { // Nope, just spill it anywhere convenient. - FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg), + FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg)/8, RegInfo->getSpillAlignment(Reg)/8); } else { // Spill it to the stack where we must. - FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg), + FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg)/8, FixedSlot->second); } StackSlots.push_back(FrameIdx); |