]> granicus.if.org Git - llvm/commit
[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)
commit000490dcc1920b8f2f3c4809524d90fda7df1c76
treee2078a664521e0e993dd08dfe72fe5439be18536
parent8d8abdc2bdc9be2c918363274234618d988b0dab
[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.

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