summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitfa2bf42539e7b0a92d763511e6fd658268dafe9b (patch)
treeb71682b861244cf68a6ce8b4e8dc7e4ca0da5eff /llvm/lib/CodeGen
parent7ebfde2be63fb649f3a38d0d032a5f0209cf5a55 (diff)
downloadbcm5719-llvm-fa2bf42539e7b0a92d763511e6fd658268dafe9b.tar.gz
bcm5719-llvm-fa2bf42539e7b0a92d763511e6fd658268dafe9b.zip
Register sizes are in bits, not bytes
llvm-svn: 16070
Diffstat (limited to 'llvm/lib/CodeGen')
-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