[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 Mar 30 21:14:52 PDT 2023


skatkov updated this revision to Diff 509895.
skatkov added a comment.

remove redundant m_c to safe a compile time a bit.


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.509895.patch
Type: text/x-patch
Size: 5480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/cec935d6/attachment.bin>


More information about the llvm-commits mailing list