[X86][AVX] Ensure resolveTargetShuffleInputs shuffle masks are the correct width

Don't handle ZERO_EXTEND style shuffles until we support bitcasts. Found by inspection.

llvm-svn: 343924
This commit is contained in:
Simon Pilgrim 2018-10-06 17:18:41 +00:00
parent b9f72a5a60
commit a30e8d23e2
1 changed files with 2 additions and 1 deletions

View File

@ -6393,7 +6393,8 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask,
return false;
SmallVector<int, 64> SubMask;
SmallVector<SDValue, 2> SubInputs;
if (!resolveTargetShuffleInputs(Sub, SubInputs, SubMask, DAG))
if (!resolveTargetShuffleInputs(Sub, SubInputs, SubMask, DAG) ||
SubMask.size() != NumSubElts)
return false;
Ops.push_back(Src);
for (SDValue &SubInput : SubInputs) {