mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937.
llvm-svn: 111208
This commit is contained in:
parent
9e252e854d
commit
1e40f2351c
@ -3229,6 +3229,7 @@ static bool isVTRN_v_undef_Mask(const SmallVectorImpl<int> &M, EVT VT,
|
||||
unsigned NumElts = VT.getVectorNumElements();
|
||||
WhichResult = (M[0] == 0 ? 0 : 1);
|
||||
for (unsigned i = 0; i < NumElts; i += 2) {
|
||||
if (M[i] < 0) continue;
|
||||
if ((unsigned) M[i] != i + WhichResult ||
|
||||
(unsigned) M[i+1] != i + WhichResult)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user