[llvm] r229138 - [mips] Use isa<> instead of dyn_cast<> with unused value. NFC.
Vasileios Kalintiris
Vasileios.Kalintiris at imgtec.com
Fri Feb 13 11:12:16 PST 2015
Author: vkalintiris
Date: Fri Feb 13 13:12:16 2015
New Revision: 229138
URL: http://llvm.org/viewvc/llvm-project?rev=229138&view=rev
Log:
[mips] Use isa<> instead of dyn_cast<> with unused value. NFC.
Reviewers: dsanders
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D7615
Modified:
llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp?rev=229138&r1=229137&r2=229138&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp Fri Feb 13 13:12:16 2015
@@ -2291,9 +2291,9 @@ lowerEXTRACT_VECTOR_ELT(SDValue Op, Sele
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;
}
More information about the llvm-commits
mailing list