[PATCH] D147296: [InstCombine] Add support for max(a, b) + min(a, b) => a + b.

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 20:49:20 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb86a06ef284f: [InstCombine] Add support for max(a,b) + min(a,b) => a + b. (authored by skatkov).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147296/new/

https://reviews.llvm.org/D147296

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  llvm/test/Transforms/InstCombine/add-min-max.ll
  llvm/test/Transforms/InstCombine/mul-min-max.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147296.511602.patch
Type: text/x-patch
Size: 7746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230407/565da784/attachment.bin>


More information about the llvm-commits mailing list