[PATCH] D129666: [SDAG] Remove single-result restriction on commutative CSE

Itay Bookstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 10:36:28 PDT 2022


ibookstein created this revision.
ibookstein added reviewers: bogner, craig.topper, RKSimon.
Herald added subscribers: jsji, StephenFan, ecnelises, pengfei, hiraditya.
Herald added a project: All.
ibookstein requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The DAG Combiner unnecessarily restricts commutative CSE
to nodes with a single result value. This commit removes
that restriction.

Signed-off-by: Itay Bookstein <ibookstein at gmail.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129666

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/dagcombine-multiple-results.ll
  llvm/test/CodeGen/X86/smul-with-overflow.ll
  llvm/test/CodeGen/X86/smulo-128-legalisation-lowering.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129666.444333.patch
Type: text/x-patch
Size: 145985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220713/a571aff6/attachment.bin>


More information about the llvm-commits mailing list