Skip to content

Commit dc97118

Browse files
committed
[X86][AVX] Limit getFauxShuffleMask INSERT_SUBVECTOR support to 2 inputs
rL343853 didn't limit the number of subinputs, but we don't currently support faux shuffles with more than 2 total inputs, so put a limiter in place until this is fixed. Found by Artem Dergachev. llvm-svn: 343891
1 parent 8c46668 commit dc97118

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6414,7 +6414,8 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask,
64146414
Mask[i + InsertIdx] = (NumElts * (1 + InputIdx)) + ExtractIdx + M;
64156415
}
64166416
}
6417-
return true;
6417+
// TODO - Add support for more than 1 subinput.
6418+
return Ops.size() <= 2;
64186419
}
64196420
case ISD::SCALAR_TO_VECTOR: {
64206421
// Match against a scalar_to_vector of an extract from a vector,

0 commit comments

Comments
 (0)