]> granicus.if.org Git - llvm/commit
[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)
commitb16ec5f87007878f946c74111d494fc905ea9db4
treedfad826b8ca787a5dc4bc1d884da94432c505e3f
parent820be7b079c71c9daa3f84af678103d7bd83f1d0
[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

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