[PATCH] D41811: X86: Add pattern matching for PMADDWD

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 00:47:27 PST 2018


zvi updated this revision to Diff 129218.
zvi added a comment.

1. Following Simon's suggestion, refactored out the code that splits the vector to legal-types to 'LowerBinTo' (the function name probably needs revision)) and applied to PMADDWD.
2. Added a missing DAGCombine to let a truncate negate a sext through an EXTRACT_SUBVECTOR.

This patch still needs to be worked on to improve comments and code-style, and broken into 2-3 patches. But would appreciate feedback on item #1 above. Thanks.


https://reviews.llvm.org/D41811

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/madd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41811.129218.patch
Type: text/x-patch
Size: 23363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180110/60ca43d4/attachment.bin>


More information about the llvm-commits mailing list