[X86][SSE] Add missing comment describing combing to SHUFPS. NFCI

llvm-svn: 294745
This commit is contained in:
Simon Pilgrim 2017-02-10 13:16:01 +00:00
parent 38e2d58594
commit 1140281413
1 changed files with 2 additions and 0 deletions

View File

@ -26759,6 +26759,8 @@ static bool matchBinaryPermuteVectorShuffle(MVT MaskVT, ArrayRef<int> Mask,
(MaskVT == MVT::v16f32 && Subtarget.hasAVX512())) {
SmallVector<int, 4> RepeatedMask;
if (isRepeatedTargetShuffleMask(128, MaskVT, Mask, RepeatedMask)) {
// Match each half of the repeated mask, to determine if its just
// referencing one of the vectors, is zeroable or entirely undef.
auto MatchHalf = [&](unsigned Offset, int &S0, int &S1) {
int M0 = RepeatedMask[Offset];
int M1 = RepeatedMask[Offset + 1];