Changes in directory llvm/lib/Target/PowerPC:
PPCRegisterInfo.cpp updated: 1.86 -> 1.87 --- Log message: 1. Ignore the -disable-fp-elim when the routine is a leaf. 2. Offsets on 64-bit stores are still in bytes. --- Diffs of the changes: (+2 -2) PPCRegisterInfo.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.86 llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.87 --- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.86 Thu Nov 16 16:43:37 2006 +++ llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp Fri Nov 17 10:09:31 2006 @@ -704,7 +704,7 @@ // don't have a frame pointer, calls, or dynamic alloca then we do not need // to adjust the stack pointer (we fit in the Red Zone). if (FrameSize <= 224 && // Fits in red zone. - !needsFP(MF) && // Frame pointer can be eliminated. + !MFI->hasVarSizedObjects() && // No dynamic alloca. !MFI->hasCalls() && // No calls. MaxAlign <= TargetAlign) { // No special alignment. // No need for frame @@ -818,7 +818,7 @@ .addImm(NegFrameSize); BuildMI(MBB, MBBI, PPC::STDUX, 3) .addReg(PPC::X1).addReg(PPC::X1).addReg(PPC::X0); - } else if (isInt16(NegFrameSize/4)) { + } else if (isInt16(NegFrameSize)) { BuildMI(MBB, MBBI, PPC::STDU, 3, PPC::X1) .addReg(PPC::X1).addImm(NegFrameSize/4).addReg(PPC::X1); } else { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits