[llvm] r251777 - [X86] Use isa instead of dyn_cast in a bool context. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 1 23:24:32 PST 2015
Author: ctopper
Date: Mon Nov 2 01:24:32 2015
New Revision: 251777
URL: http://llvm.org/viewvc/llvm-project?rev=251777&view=rev
Log:
[X86] Use isa instead of dyn_cast in a bool context. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=251777&r1=251776&r2=251777&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Nov 2 01:24:32 2015
@@ -23186,9 +23186,9 @@ static SDValue PerformEXTRACT_VECTOR_ELT
EVT VT = N->getValueType(0);
- if (VT == MVT::i1 && dyn_cast<ConstantSDNode>(N->getOperand(1)) &&
+ if (VT == MVT::i1 && isa<ConstantSDNode>(N->getOperand(1)) &&
InputVector.getOpcode() == ISD::BITCAST &&
- dyn_cast<ConstantSDNode>(InputVector.getOperand(0))) {
+ isa<ConstantSDNode>(InputVector.getOperand(0))) {
uint64_t ExtractedElt =
cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
uint64_t InputValue =
More information about the llvm-commits
mailing list