forked from OSchip/llvm-project
[X86] lowerShuffleWithVPMOV - remove oneuse constraints on shuffle(trunc(x),undef) -> vpmov(x) lowering
These were added in rG057bdd63 but shuffle combining has gotten a lot better at folding different vector widths since then.
This commit is contained in:
parent
d09d4bd66c
commit
5dcf0c342b
|
@ -12412,11 +12412,7 @@ static SDValue lowerShuffleWithVPMOV(const SDLoc &DL, MVT VT, SDValue V1,
|
|||
!Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes())
|
||||
continue;
|
||||
|
||||
SDValue Src = V1;
|
||||
if (!Src.hasOneUse())
|
||||
return SDValue();
|
||||
|
||||
Src = peekThroughOneUseBitcasts(Src);
|
||||
SDValue Src = peekThroughBitcasts(V1);
|
||||
if (Src.getOpcode() != ISD::TRUNCATE ||
|
||||
Src.getScalarValueSizeInBits() != (EltSizeInBits * Scale))
|
||||
return SDValue();
|
||||
|
|
Loading…
Reference in New Issue