mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
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
This commit is contained in:
parent
c3d479a40f
commit
81ab877a0c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user