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 | beda2241a45f997d4dea122a1faade907ace0213 (patch) | |
tree | 5c33660f3d21065f4ab376d6d81e2776f8ece22c /llvm/lib/Target/Mips/MipsFrameLowering.cpp | |
parent | 298f38ee68c57d983b3da073107445fc0d6a5e48 (diff) | |
download | llvm-beda2241a45f997d4dea122a1faade907ace0213.zip llvm-beda2241a45f997d4dea122a1faade907ace0213.tar.gz llvm-beda2241a45f997d4dea122a1faade907ace0213.tar.bz2 |
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.
llvm-svn: 161068
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsFrameLowering.cpp b/llvm/lib/Target/Mips/MipsFrameLowering.cpp index 4d69c82..d5c02ce 100644 --- a/llvm/lib/Target/Mips/MipsFrameLowering.cpp +++ b/llvm/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); |