forked from OSchip/llvm-project
[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:
parent
b9f72a5a60
commit
a30e8d23e2
|
@ -6393,7 +6393,8 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask,
|
||||||
return false;
|
return false;
|
||||||
SmallVector<int, 64> SubMask;
|
SmallVector<int, 64> SubMask;
|
||||||
SmallVector<SDValue, 2> SubInputs;
|
SmallVector<SDValue, 2> SubInputs;
|
||||||
if (!resolveTargetShuffleInputs(Sub, SubInputs, SubMask, DAG))
|
if (!resolveTargetShuffleInputs(Sub, SubInputs, SubMask, DAG) ||
|
||||||
|
SubMask.size() != NumSubElts)
|
||||||
return false;
|
return false;
|
||||||
Ops.push_back(Src);
|
Ops.push_back(Src);
|
||||||
for (SDValue &SubInput : SubInputs) {
|
for (SDValue &SubInput : SubInputs) {
|
||||||
|
|
Loading…
Reference in New Issue