[mips] Use isa<> instead of dyn_cast<> with unused value. NFC.

Reviewers: dsanders

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vasileios Kalintiris
2015-02-13 19:12:16 +00:00
parent 941454f17f
commit 00c4738c11

View File

@@ -2291,9 +2291,9 @@ lowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const {
static bool isConstantOrUndef(const SDValue Op) {
if (Op->getOpcode() == ISD::UNDEF)
return true;
if (dyn_cast<ConstantSDNode>(Op))
if (isa<ConstantSDNode>(Op))
return true;
if (dyn_cast<ConstantFPSDNode>(Op))
if (isa<ConstantFPSDNode>(Op))
return true;
return false;
}