[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
Tue Apr 4 20:36:16 PDT 2023


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

NFC update - use of BinaryOperator::CreateWithCopiedFlags utility instead of manually copying flags.


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.510988.patch
Type: text/x-patch
Size: 7746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/aef36c70/attachment.bin>


More information about the llvm-commits mailing list