forked from OSchip/llvm-project
Register info alignment is in bits, frame object alignment is (currently) in
bytes. llvm-svn: 15970
This commit is contained in:
parent
beadefde19
commit
36ba4bb042
|
@ -182,7 +182,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
|
||||||
if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
|
if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
|
||||||
// Nope, just spill it anywhere convenient.
|
// Nope, just spill it anywhere convenient.
|
||||||
FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
|
FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
|
||||||
RegInfo->getSpillAlignment(Reg));
|
RegInfo->getSpillAlignment(Reg)/8);
|
||||||
} else {
|
} else {
|
||||||
// Spill it to the stack where we must.
|
// Spill it to the stack where we must.
|
||||||
FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),
|
FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),
|
||||||
|
|
Loading…
Reference in New Issue