[X86] Fix pshuflw formation from repeated shuffle mask (PR43230)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 7 Sep 2019 12:13:44 +0000 (12:13 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 7 Sep 2019 12:13:44 +0000 (12:13 +0000)
commit314893cc4ba05e65da4be26afb21b2fb50eab7b3
tree1d7f4216e5a0ca77ee445418be1ba324591996f1
parentfdc6977ff3c0cb6c729c38c86f96e1281cb3171c
[X86] Fix pshuflw formation from repeated shuffle mask (PR43230)

Fix for https://bugs.llvm.org/show_bug.cgi?id=43230.

When creating PSHUFLW from a repeated shuffle mask, we have to apply
the checks to the repeated mask, not the original one. For the test
case from PR43230 the inspected part of the original mask is all undef.

Differential Revision: https://reviews.llvm.org/D67314

llvm-svn: 371307
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-256-v16.ll