We already do this for ISD::TRUNCATE, but we can do the same for X86ISD::VTRUNC
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D68432  
[X86] Add DAG combine to form saturating VTRUNCUS/VTRUNCS from VTRUNC ClosedPublic Authored by craig.topper on Oct 3 2019, 3:47 PM. 
Details Summary We already do this for ISD::TRUNCATE, but we can do the same for X86ISD::VTRUNC 
Diff Detail Event TimelineThis revision is now accepted and ready to land.Oct 4 2019, 8:55 AM Closed by commit rL373765: [X86] Add DAG combine to form saturating VTRUNCUS/VTRUNCS from VTRUNC (authored by ctopper).  ·  Explain WhyOct 4 2019, 10:51 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 223114 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
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||