[X86] Teach lower1BitShuffle to match KSHIFTR that doesn't use Zeroable and only...
authorCraig Topper <craig.topper@intel.com>
Mon, 19 Aug 2019 04:08:40 +0000 (04:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 19 Aug 2019 04:08:40 +0000 (04:08 +0000)
commit269c6b1c15a7d105aa39de728e293614de18f973
tree38855d9ab7c5b6f4beec8e7c90339796d85ce0c0
parent2eb7951da39287ff12be9def2f0b08535c25a799
[X86] Teach lower1BitShuffle to match KSHIFTR that doesn't use Zeroable and only relies on undef.

This allows us to widen the type when the KSHIFTR instruction
doesn't exist for the type. If we need to shift in zeroes into
the upper elements we would need more work to guarantee zeroes
when widening.

llvm-svn: 369227
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/kshift.ll