summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2004-08-29 22:00:24 +0000
committerNate Begeman <natebegeman@mac.com>2004-08-29 22:00:24 +0000
commitc9dec3ae7032ebd27be499a245f3a87ff6f5c2f7 (patch)
tree9ea7b237dbfaadc85841c0ecf50e6b0ebb62c509 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent168be7e43f9e546e4e0b03fe022f8c3d8f42f85e (diff)
downloadbcm5719-llvm-c9dec3ae7032ebd27be499a245f3a87ff6f5c2f7.tar.gz
bcm5719-llvm-c9dec3ae7032ebd27be499a245f3a87ff6f5c2f7.zip
Put this change back in after testing from Reid proved its innocence. getSpillSize now returns value in bits
llvm-svn: 16102
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index c71755612ec..1aee69f9cca 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud