diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-08-27 16:48:24 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-08-27 16:48:24 +0000 |
commit | bd2efb96005c51f9088701843c5ee9032bd1ca76 (patch) | |
tree | 73fafb0c1bf0cd03e009bb7d4aae64d1259ca649 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 52ca9e4c3d82347a4ca941aca9ed17da74eca85e (diff) |
Back out change to divide getSpillSize by 8 until I figure out why it breaks x86, which has register sizes in bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16073 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 1aee69f9cc..c71755612e 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)/8, + FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg), RegInfo->getSpillAlignment(Reg)/8); } else { // Spill it to the stack where we must. - FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg)/8, + FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg), FixedSlot->second); } StackSlots.push_back(FrameIdx); |