Register info alignment is in bits, frame object alignment is (currently) in
authorChris Lattner <sabre@nondot.org>
Sat, 21 Aug 2004 20:04:59 +0000 (20:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Aug 2004 20:04:59 +0000 (20:04 +0000)
bytes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15970 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PrologEpilogInserter.cpp

index 213371949c87023e70ac1864eb751ffd0f6455c3..c71755612ec065213be823604b61762b7a925edc 100644 (file)
@@ -182,7 +182,7 @@ void PEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
     if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
       // Nope, just spill it anywhere convenient.
       FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
-                                        RegInfo->getSpillAlignment(Reg));
+                                        RegInfo->getSpillAlignment(Reg)/8);
     } else {
       // Spill it to the stack where we must.
       FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),