]> granicus.if.org Git - llvm/commit
[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)
commitdf591a43ba24bb1e93b7480c079f5ea2a58592b6
treeb70dafe3c26e4d2b5ea6d791a1dccdfbc3157550
parent81460d13a7bb587c53fe5506217006c8160be9f4
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-256-v16.ll