diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-31 18:46:41 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-31 18:46:41 +0000 |
commit | e2d529ac1111f153628a9c5c654f4a514e841b47 (patch) | |
tree | 42299470c7ebda4e10e6362ec65d2b1f94375636 /lib/Target/Mips/MipsFrameLowering.cpp | |
parent | d97f3a5ab084485fe4931b6e7d8fa40ae4caa3c1 (diff) | |
download | llvm-e2d529ac1111f153628a9c5c654f4a514e841b47.tar.gz llvm-e2d529ac1111f153628a9c5c654f4a514e841b47.tar.bz2 llvm-e2d529ac1111f153628a9c5c654f4a514e841b47.tar.xz |
When store nodes or memcpy nodes are created to copy the function call
arguments to the stack in MipsISelLowering::LowerCall, use stack pointer and
integer offset operands rather than frame object operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsFrameLowering.cpp b/lib/Target/Mips/MipsFrameLowering.cpp index 4d69c82a1d..d5c02ceab1 100644 --- a/lib/Target/Mips/MipsFrameLowering.cpp +++ b/lib/Target/Mips/MipsFrameLowering.cpp @@ -97,7 +97,6 @@ bool MipsFrameLowering::targetHandlesStackFrameRounding() const { void MipsFrameLowering::emitPrologue(MachineFunction &MF) const { MachineBasicBlock &MBB = MF.front(); MachineFrameInfo *MFI = MF.getFrameInfo(); - MipsFunctionInfo *MipsFI = MF.getInfo<MipsFunctionInfo>(); const MipsRegisterInfo *RegInfo = static_cast<const MipsRegisterInfo*>(MF.getTarget().getRegisterInfo()); const MipsInstrInfo &TII = @@ -113,7 +112,7 @@ void MipsFrameLowering::emitPrologue(MachineFunction &MF) const { // First, compute final stack size. unsigned StackAlign = getStackAlignment(); uint64_t StackSize = RoundUpToAlignment(MFI->getStackSize(), StackAlign); - StackSize += RoundUpToAlignment(MipsFI->getMaxCallFrameSize(), StackAlign); + StackSize += RoundUpToAlignment(MFI->getMaxCallFrameSize(), StackAlign); // Update stack size MFI->setStackSize(StackSize); |