[X86][AVX] Remove redundant EXTRACT_VECTOR_ELT(VBROADCAST(SCALAR())) fold
Noticed while looking for similar cases to rG931ec74f7a29 - SimplifyDemandedVectorElts and shuffle combining both should handle this now.
This commit is contained in:
parent
bee8cdcabd
commit
c00a27752e
|
|
@ -38963,9 +38963,6 @@ static SDValue combineExtractWithShuffle(SDNode *N, SelectionDAG &DAG,
|
|||
// Handle extract(bitcast(broadcast(scalar_value))).
|
||||
if (X86ISD::VBROADCAST == SrcBC.getOpcode()) {
|
||||
SDValue SrcOp = SrcBC.getOperand(0);
|
||||
if (SrcOp.getValueSizeInBits() == VT.getSizeInBits())
|
||||
return DAG.getBitcast(VT, SrcOp);
|
||||
|
||||
EVT SrcOpVT = SrcOp.getValueType();
|
||||
if (SrcOpVT.isScalarInteger() && VT.isInteger() &&
|
||||
(SrcOpVT.getSizeInBits() % SrcEltBits) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue