[PATCH] D66052: [DAGCombiner] Add simple folds for SMULFIX/UMULFIX/SMULFIXSAT

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 05:33:56 PDT 2019


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

Add the following DAGCombiner folds for mulfix being
one of SMULFIX/UMULFIX/SMULFIXSAT:

  (mulfix x, undef, scale) -> 0
  (mulfix x, 0, scale) -> 0

Also added canonicalization of constants to RHS.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66052

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/mulfix_combine.ll
  llvm/test/CodeGen/X86/vector-mulfix-legalize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66052.214521.patch
Type: text/x-patch
Size: 11044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190810/01a73604/attachment-0001.bin>


More information about the llvm-commits mailing list