From: Craig Topper Date: Mon, 2 Nov 2015 07:24:32 +0000 (+0000) Subject: [X86] Use isa instead of dyn_cast in a bool context. NFC X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4ed28131639298db6b4a5f52fe9b80c419772e4a;p=oota-llvm.git [X86] Use isa instead of dyn_cast in a bool context. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index cfe899b3fd2..a185bdc7263 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -23186,9 +23186,9 @@ static SDValue PerformEXTRACT_VECTOR_ELTCombine(SDNode *N, SelectionDAG &DAG, EVT VT = N->getValueType(0); - if (VT == MVT::i1 && dyn_cast(N->getOperand(1)) && + if (VT == MVT::i1 && isa(N->getOperand(1)) && InputVector.getOpcode() == ISD::BITCAST && - dyn_cast(InputVector.getOperand(0))) { + isa(InputVector.getOperand(0))) { uint64_t ExtractedElt = cast(N->getOperand(1))->getZExtValue(); uint64_t InputValue =