diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-05-03 14:19:26 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-05-03 14:19:26 +0000 |
commit | 01bcefd98339a04333bd7f96e877f904d77fb0c0 (patch) | |
tree | ed6d9dd7fa0d592389ec3b550a4d4917c7f83ce1 /llvm/lib/Target/Mips/MipsFastISel.cpp | |
parent | e871785eb689e74686455128be118d80aff1cc44 (diff) | |
download | llvm-01bcefd98339a04333bd7f96e877f904d77fb0c0.zip llvm-01bcefd98339a04333bd7f96e877f904d77fb0c0.tar.gz llvm-01bcefd98339a04333bd7f96e877f904d77fb0c0.tar.bz2 |
[mips][fastisel] ADJCALLSTACKUP has a second immediate operand.
Summary:
It's always zero for SelectionDAG and is never read by the MIPS backend so
do the same for FastISel.
Reviewers: sdardis
Subscribers: dsanders, llvm-commits, sdardis
Differential Revision: http://reviews.llvm.org/D19863
llvm-svn: 268386
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFastISel.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp index be5b8a2..d215ed7 100644 --- a/llvm/lib/Target/Mips/MipsFastISel.cpp +++ b/llvm/lib/Target/Mips/MipsFastISel.cpp @@ -1208,7 +1208,7 @@ bool MipsFastISel::processCallArgs(CallLoweringInfo &CLI, bool MipsFastISel::finishCall(CallLoweringInfo &CLI, MVT RetVT, unsigned NumBytes) { CallingConv::ID CC = CLI.CallConv; - emitInst(Mips::ADJCALLSTACKUP).addImm(16); + emitInst(Mips::ADJCALLSTACKUP).addImm(16).addImm(0); if (RetVT != MVT::isVoid) { SmallVector<CCValAssign, 16> RVLocs; CCState CCInfo(CC, false, *FuncInfo.MF, RVLocs, *Context); |