[PATCH] D57218: [X86] Combine masked store and truncate into masked truncating stores.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 21:31:24 PST 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.

We also need to combine to masked truncating with saturation stores, but I'm leaving that for a future patch.

This does regress some tests that used truncate wtih saturation followed by a masked store. Those now use a truncating store and use min/max to saturate.


Repository:
  rL LLVM

https://reviews.llvm.org/D57218

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/masked_store_trunc.ll
  test/CodeGen/X86/masked_store_trunc_ssat.ll
  test/CodeGen/X86/masked_store_trunc_usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57218.183479.patch
Type: text/x-patch
Size: 29557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190125/92bba420/attachment.bin>


More information about the llvm-commits mailing list