[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
Tue Apr 4 19:05:15 PDT 2023


skatkov added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:768
 
+  // minumin(X, Y) * maximum(X, Y) => X * Y.
+  if (match(&I,
----------------
Hrrrr, minimum again. Will update before landing or next iteration.


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

https://reviews.llvm.org/D147299



More information about the llvm-commits mailing list