forked from OSchip/llvm-project
[X86][SSE] Add early-out when trying to match blend shuffle. NFCI.
llvm-svn: 294864
This commit is contained in:
parent
63499b61c9
commit
4ef9672f0f
|
@ -26684,10 +26684,11 @@ static bool matchBinaryPermuteVectorShuffle(MVT MaskVT, ArrayRef<int> Mask,
|
||||||
int M = Mask[i];
|
int M = Mask[i];
|
||||||
if (M == SM_SentinelUndef)
|
if (M == SM_SentinelUndef)
|
||||||
continue;
|
continue;
|
||||||
else if (M == SM_SentinelZero)
|
if ((M == SM_SentinelZero) ||
|
||||||
MatchBlend = false;
|
((M != i) && (M != (i + (int)NumMaskElts)))) {
|
||||||
else if ((M != i) && (M != (i + (int)NumMaskElts)))
|
|
||||||
MatchBlend = false;
|
MatchBlend = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MatchBlend) {
|
if (MatchBlend) {
|
||||||
|
|
Loading…
Reference in New Issue