summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsFrameLowering.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-07-31 21:28:49 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-07-31 21:28:49 +0000
commit1d53f1bbab0573289a9856b7da5e9977cad848d4 (patch)
treec8884180b749f72dd8a22001131a45d230100818 /lib/Target/Mips/MipsFrameLowering.cpp
parent1d165f1c252d1541b4788bf81092a9299cc764e5 (diff)
Let PEI::calculateFrameObjectOffsets compute the final stack size rather than
computing it in MipsFrameLowering::emitPrologue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r--lib/Target/Mips/MipsFrameLowering.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Target/Mips/MipsFrameLowering.cpp b/lib/Target/Mips/MipsFrameLowering.cpp
index d5c02ceab18..ca7ba124e66 100644
--- a/lib/Target/Mips/MipsFrameLowering.cpp
+++ b/lib/Target/Mips/MipsFrameLowering.cpp
@@ -90,10 +90,6 @@ bool MipsFrameLowering::hasFP(const MachineFunction &MF) const {
MFI->hasVarSizedObjects() || MFI->isFrameAddressTaken();
}
-bool MipsFrameLowering::targetHandlesStackFrameRounding() const {
- return true;
-}
-
void MipsFrameLowering::emitPrologue(MachineFunction &MF) const {
MachineBasicBlock &MBB = MF.front();
MachineFrameInfo *MFI = MF.getFrameInfo();
@@ -110,12 +106,7 @@ void MipsFrameLowering::emitPrologue(MachineFunction &MF) const {
unsigned ADDiu = STI.isABI_N64() ? Mips::DADDiu : Mips::ADDiu;
// First, compute final stack size.
- unsigned StackAlign = getStackAlignment();
- uint64_t StackSize = RoundUpToAlignment(MFI->getStackSize(), StackAlign);
- StackSize += RoundUpToAlignment(MFI->getMaxCallFrameSize(), StackAlign);
-
- // Update stack size
- MFI->setStackSize(StackSize);
+ uint64_t StackSize = MFI->getStackSize();
// No need to allocate space on the stack.
if (StackSize == 0 && !MFI->adjustsStack()) return;