forked from OSchip/llvm-project
[X86][SSE] combineX86ShuffleChain - use resolveZeroablesFromTargetShuffle helper. NFCI.
This commit is contained in:
parent
7904bd9409
commit
94a4a2c97f
|
@ -32414,10 +32414,9 @@ static SDValue combineX86ShuffleChain(ArrayRef<SDValue> Inputs, SDValue Root,
|
|||
(!MaskVT.is256BitVector() || Subtarget.hasAVX2());
|
||||
|
||||
// Determine zeroable mask elements.
|
||||
APInt Zeroable(NumMaskElts, 0);
|
||||
for (unsigned i = 0; i != NumMaskElts; ++i)
|
||||
if (isUndefOrZero(Mask[i]))
|
||||
Zeroable.setBit(i);
|
||||
APInt KnownUndef, KnownZero;
|
||||
resolveZeroablesFromTargetShuffle(Mask, KnownUndef, KnownZero);
|
||||
APInt Zeroable = KnownUndef | KnownZero;
|
||||
|
||||
if (UnaryShuffle) {
|
||||
// If we are shuffling a X86ISD::VZEXT_LOAD then we can use the load
|
||||
|
|
Loading…
Reference in New Issue