From 7489faa0c1c9cbcd0182e9c19ca10ee43e7dbfb4 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Fri, 20 May 2011 01:45:06 +0000 Subject: Remove code that creates unnecessary frame objects. llvm-svn: 131711 --- llvm/lib/Target/Mips/MipsISelLowering.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm') diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index 496d00fe4eb..f9401858ce8 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -1048,11 +1048,7 @@ MipsTargetLowering::LowerCall(SDValue Chain, SDValue Callee, CCState CCInfo(CallConv, isVarArg, getTargetMachine(), ArgLocs, *DAG.getContext()); - // To meet O32 ABI, Mips must always allocate 16 bytes on - // the stack (even if less than 4 are used as arguments) if (Subtarget->isABI_O32()) { - int VTsize = MVT(MVT::i32).getSizeInBits()/8; - MFI->CreateFixedObject(VTsize, (VTsize*3), true); CCInfo.AnalyzeCallOperands(Outs, CC_MipsO32); } else CCInfo.AnalyzeCallOperands(Outs, CC_Mips); -- cgit v1.2.3