mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[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:
@@ -2291,9 +2291,9 @@ lowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const {
|
|||||||
static bool isConstantOrUndef(const SDValue Op) {
|
static bool isConstantOrUndef(const SDValue Op) {
|
||||||
if (Op->getOpcode() == ISD::UNDEF)
|
if (Op->getOpcode() == ISD::UNDEF)
|
||||||
return true;
|
return true;
|
||||||
if (dyn_cast<ConstantSDNode>(Op))
|
if (isa<ConstantSDNode>(Op))
|
||||||
return true;
|
return true;
|
||||||
if (dyn_cast<ConstantFPSDNode>(Op))
|
if (isa<ConstantFPSDNode>(Op))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user