mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[X86] isTargetShuffleEquivalent - assert the expected mask is correctly formed. NFCI.
While we don't make any assumptions about the actual mask, assert that the expected mask only contains valid mask element values. llvm-svn: 366066
This commit is contained in:
parent
2eb6d2aca8
commit
3157c926f7
@ -10001,6 +10001,8 @@ static bool isTargetShuffleEquivalent(ArrayRef<int> Mask,
|
||||
int Size = Mask.size();
|
||||
if (Size != (int)ExpectedMask.size())
|
||||
return false;
|
||||
assert(isUndefOrZeroOrInRange(ExpectedMask, 0, 2 * Size) &&
|
||||
"Illegal target shuffle mask");
|
||||
|
||||
for (int i = 0; i < Size; ++i)
|
||||
if (Mask[i] == SM_SentinelUndef)
|
||||
|
Loading…
x
Reference in New Issue
Block a user