mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fecdea0bf7
commit
ca5e47d3f8
@ -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…
Reference in New Issue
Block a user