1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00

[X86] Use isa instead of dyn_cast in a bool context. NFC

llvm-svn: 251777
This commit is contained in:
Craig Topper 2015-11-02 07:24:32 +00:00
parent cbb29b67b1
commit df102b96ca

View File

@ -23186,9 +23186,9 @@ static SDValue PerformEXTRACT_VECTOR_ELTCombine(SDNode *N, SelectionDAG &DAG,
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 =