[X86][AVX] SimplifyDemandedVectorEltsForTargetNode - reduce width of X86ISD::VPERMILPV
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 27 Jun 2020 13:43:03 +0000 (14:43 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 27 Jun 2020 13:43:03 +0000 (14:43 +0100)
commitd56c6475a60aa44b040983fe4fd355399cc4c42d
tree8075207c260ca6127cb2b8a30a570954dc07f63e
parenta43b99a1e38e2beffb68a6db93f216f511e7fd41
[X86][AVX] SimplifyDemandedVectorEltsForTargetNode - reduce width of X86ISD::VPERMILPV

If we don't need the elements of the upper lanes, reduce the width of the X86ISD::VPERMILPV node.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/var-permute-256.ll