]> granicus.if.org Git - llvm/commit
[InstCombine][X86][AVX] Add DemandedElts support for VPERMILPD/VPERMILPS instructions
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Jan 2017 11:35:03 +0000 (11:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Jan 2017 11:35:03 +0000 (11:35 +0000)
commit04f56107c5c591204f7faeafc721eb6b944cdfb7
treecc9d45d033255cc1a3ebc725cc87ecfbb55d9158
parentf8136d072e7f4a425ecfa4e48fb9a51824e8cbdd
[InstCombine][X86][AVX] Add DemandedElts support for VPERMILPD/VPERMILPS instructions

Simplify a vpermilvar shuffle mask based on the elements of the mask that are actually demanded.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
test/Transforms/InstCombine/x86-vpermil.ll