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:
parent
cbb29b67b1
commit
df102b96ca
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user