[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)
commitf68c4aef85ada29676c791478273814cc43d46ca
treecfffeb667afbf4d104be682c3309054d5a231bcd
parentd42eac67f55824b27de0603e6e6acc0e9047355f
[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.

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