[mips] Remove MipsCC::getRegVT(). NFC
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 7 Nov 2014 12:02:59 +0000 (12:02 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 7 Nov 2014 12:02:59 +0000 (12:02 +0000)
Summary: It's no longer used.

Reviewers: vmedic, theraven

Reviewed By: theraven

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6112

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221519 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h

index e3f4b11e0c1cae022b74010441a4d1aa83890af6..d82dc98dc9be65dfc985e8f30d49932113439eca 100644 (file)
@@ -3634,21 +3634,6 @@ const ArrayRef<MCPhysReg> MipsTargetLowering::MipsCC::intArgRegs() const {
   return makeArrayRef(Mips64IntRegs);
 }
 
-MVT MipsTargetLowering::MipsCC::getRegVT(MVT VT, const Type *OrigTy,
-                                         const SDNode *CallNode,
-                                         bool IsSoftFloat) const {
-  if (IsSoftFloat || Subtarget.isABI_O32())
-    return VT;
-
-  // Check if the original type was fp128.
-  if (originalTypeIsF128(OrigTy, CallNode)) {
-    assert(VT == MVT::i64);
-    return MVT::f64;
-  }
-
-  return VT;
-}
-
 void MipsTargetLowering::copyByValRegs(
     SDValue Chain, SDLoc DL, std::vector<SDValue> &OutChains, SelectionDAG &DAG,
     const ISD::ArgFlagsTy &Flags, SmallVectorImpl<SDValue> &InVals,
index 12beb59fc4e99b0970878958e82c3d0a8b7f4f1b..788b771bc12b6e7f2e546921fbc797267ab3997f 100644 (file)
@@ -371,13 +371,6 @@ namespace llvm {
       const ArrayRef<MCPhysReg> intArgRegs() const;
 
     private:
-      /// Return the type of the register which is used to pass an argument or
-      /// return a value. This function returns f64 if the argument is an i64
-      /// value which has been generated as a result of softening an f128 value.
-      /// Otherwise, it just returns VT.
-      MVT getRegVT(MVT VT, const Type *OrigTy, const SDNode *CallNode,
-                   bool IsSoftFloat) const;
-
       CallingConv::ID CallConv;
       const MipsSubtarget &Subtarget;
     };