mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 22:00:30 +00:00
[DAGCombine] convertBuildVecZextToZext - remove duplicate getOpcode() call. NFCI.
llvm-svn: 365269
This commit is contained in:
parent
b1b70bfd0d
commit
3210e06452
@ -17582,7 +17582,7 @@ SDValue DAGCombiner::convertBuildVecZextToZext(SDNode *N) {
|
||||
auto checkElem = [&](SDValue Op) -> int64_t {
|
||||
unsigned Opc = Op.getOpcode();
|
||||
FoundZeroExtend |= (Opc == ISD::ZERO_EXTEND);
|
||||
if ((Op.getOpcode() == ISD::ZERO_EXTEND || Opc == ISD::ANY_EXTEND) &&
|
||||
if ((Opc == ISD::ZERO_EXTEND || Opc == ISD::ANY_EXTEND) &&
|
||||
Op.getOperand(0).getOpcode() == ISD::EXTRACT_VECTOR_ELT &&
|
||||
Op0.getOperand(0).getOperand(0) == Op.getOperand(0).getOperand(0))
|
||||
if (auto *C = dyn_cast<ConstantSDNode>(Op.getOperand(0).getOperand(1)))
|
||||
|
Loading…
Reference in New Issue
Block a user