]> granicus.if.org Git - llvm/commit
[X86] Improve the AVX512 bailout in combineTruncateWithSat to allow pack instructions...
authorCraig Topper <craig.topper@intel.com>
Fri, 11 Oct 2019 00:38:51 +0000 (00:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 11 Oct 2019 00:38:51 +0000 (00:38 +0000)
commit70a8e547383d48e14a67fd84894cb39a6c83e63a
tree94985086b8373ad532070df83b54896b784ac325
parent3218be418e178180d19f055f6726e904e2024ccd
[X86] Improve the AVX512 bailout in combineTruncateWithSat to allow pack instructions in more situations.

If we don't have VLX we won't end up selecting a saturating
truncate for 256-bit or smaller vectors so we should just use
the pack lowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374487 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/masked_store_trunc_ssat.ll
test/CodeGen/X86/pmaddubsw.ll
test/CodeGen/X86/vector-trunc-packus.ll
test/CodeGen/X86/vector-trunc-ssat.ll