[PATCH] D147299: [InstCombine] Add support for maximum(a,b) + minimum(a,b) => a + b

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 22:38:26 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf38365aef436: [InstCombine] Add support for maximum(a,b) + minimum(a,b) => a + b (authored by skatkov).

Changed prior to commit:
  https://reviews.llvm.org/D147299?vs=510742&id=511616#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147299

Files:
  llvm/include/llvm/IR/PatternMatch.h
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  llvm/test/Transforms/InstCombine/fadd-maximum-minimum.ll
  llvm/test/Transforms/InstCombine/fmul-maximum-minimum.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147299.511616.patch
Type: text/x-patch
Size: 10232 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230407/172f406b/attachment.bin>


More information about the llvm-commits mailing list