diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-08-29 22:00:24 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-08-29 22:00:24 +0000 |
commit | 81ab877a0c8fbbdc903762bcc891c50e5bb98204 (patch) | |
tree | 4a0f87e5ac44564817db664f2dbdbdb79610daa8 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | c3d479a40f5cc1efe6a6ece0cd43533a24971f12 (diff) |
Put this change back in after testing from Reid proved its innocence. getSpillSize now returns value in bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16102 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); |