aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Mips/MipsFastISel.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-05-03 14:19:26 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-05-03 14:19:26 +0000
commit01bcefd98339a04333bd7f96e877f904d77fb0c0 (patch)
treeed6d9dd7fa0d592389ec3b550a4d4917c7f83ce1 /llvm/lib/Target/Mips/MipsFastISel.cpp
parente871785eb689e74686455128be118d80aff1cc44 (diff)
downloadllvm-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.cpp2
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);