[X86] Add DAG combine to form saturating VTRUNCUS/VTRUNCS from VTRUNC
authorCraig Topper <craig.topper@intel.com>
Fri, 4 Oct 2019 17:53:18 +0000 (17:53 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 4 Oct 2019 17:53:18 +0000 (17:53 +0000)
commit074fa390d25d631349f0132855d7c9eea8449ef9
treecb0c97935530b548ec4b5a68bc0ef2f02413e895
parent4380647e79bd80af1ebf6191c2d6629855ccf556
[X86] Add DAG combine to form saturating VTRUNCUS/VTRUNCS from VTRUNC

We already do this for ISD::TRUNCATE, but we can do the same for X86ISD::VTRUNC

Differential Revision: https://reviews.llvm.org/D68432

llvm-svn: 373765
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-trunc.ll
llvm/test/CodeGen/X86/masked_store_trunc_ssat.ll
llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
llvm/test/CodeGen/X86/vector-trunc-packus.ll
llvm/test/CodeGen/X86/vector-trunc-ssat.ll
llvm/test/CodeGen/X86/vector-trunc-usat.ll