[X86] Fold a VTRUNCS/VTRUNCUS+store into a saturating truncating store.
authorCraig Topper <craig.topper@intel.com>
Sat, 12 Oct 2019 00:01:08 +0000 (00:01 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 12 Oct 2019 00:01:08 +0000 (00:01 +0000)
commit3472feb94cdf90ce8d4761b2c44f080da1b5a79d
tree9b32fc1ac6bbefc2b2426c65b5e73fe085547639
parent7dcd440d44ddaf5c31f99128b1869e9dea5b767c
[X86] Fold a VTRUNCS/VTRUNCUS+store into a saturating truncating store.

We already did this for VTRUNCUS with a specific combination of
types. This extends this to VTRUNCS and handles any types where
a truncating store is legal.

llvm-svn: 374615
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-trunc.ll