[PATCH] D50878: [X86] Teach combineTruncatedArithmetic to handle some cases of ISD::SUB

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 17:39:06 PDT 2018


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

We can safely avoid interfering with the subus combine if both inputs are freely truncatable. Either both extends, or an extend and a constant vector.


https://reviews.llvm.org/D50878

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-trunc-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50878.161150.patch
Type: text/x-patch
Size: 5652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180817/ea2a34bc/attachment.bin>


More information about the llvm-commits mailing list