diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-25 03:16:47 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-25 03:16:47 +0000 |
commit | de4a1274706d7449870dac5bed05d27a6772d4ed (patch) | |
tree | 6ff9501f3a5b60ec713b3d099a7a8d725ca3af1e /lib/Target/Mips/MipsFrameLowering.cpp | |
parent | d9fb65dee63c1b7be913d4ac79c00e7bb977e2f7 (diff) | |
download | llvm-de4a1274706d7449870dac5bed05d27a6772d4ed.tar.gz llvm-de4a1274706d7449870dac5bed05d27a6772d4ed.tar.bz2 llvm-de4a1274706d7449870dac5bed05d27a6772d4ed.tar.xz |
Eliminate the stack slot used to save the global base register.
The long branch pass (fixed in r160601) no longer uses the global base register
to compute addresses of branch destinations, so it is not necessary to reserve
a slot on the stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsFrameLowering.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsFrameLowering.cpp b/lib/Target/Mips/MipsFrameLowering.cpp index 6338f3c4ea..4d69c82a1d 100644 --- a/lib/Target/Mips/MipsFrameLowering.cpp +++ b/lib/Target/Mips/MipsFrameLowering.cpp @@ -113,11 +113,7 @@ void MipsFrameLowering::emitPrologue(MachineFunction &MF) const { // First, compute final stack size. unsigned StackAlign = getStackAlignment(); uint64_t StackSize = RoundUpToAlignment(MFI->getStackSize(), StackAlign); - - if (MipsFI->globalBaseRegSet()) - StackSize += MFI->getObjectOffset(MipsFI->getGlobalRegFI()) + StackAlign; - else - StackSize += RoundUpToAlignment(MipsFI->getMaxCallFrameSize(), StackAlign); + StackSize += RoundUpToAlignment(MipsFI->getMaxCallFrameSize(), StackAlign); // Update stack size MFI->setStackSize(StackSize); |