[PATCH] D68432: [X86] Add DAG combine to form saturating VTRUNCUS/VTRUNCS from VTRUNC

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 15:48:00 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

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


https://reviews.llvm.org/D68432

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68432.223114.patch
Type: text/x-patch
Size: 12273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191003/98e732da/attachment.bin>


More information about the llvm-commits mailing list