Remove code that creates unnecessary frame objects.
authorAkira Hatanaka <ahatanak@gmail.com>
Fri, 20 May 2011 01:45:06 +0000 (01:45 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Fri, 20 May 2011 01:45:06 +0000 (01:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131711 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp

index 496d00fe4eb847e93f58e69d489997b5e0f8dde4..f9401858ce8c288ae63983fabaff3fd29c3a12c0 100644 (file)
@@ -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);