[PATCH] D124503: [InstCombine] sub(add(X,Y),umin(Y,Z)) --> add(X,usub.sat(Y,Z))

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 04:24:38 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp:2042
+          if (match(Op1, m_UMin(m_Specific(Y), m_Value(Z))) ||
+              match(Op1, m_UMin(m_Value(Z), m_Specific(Y)))) {
+            Value *USub =
----------------
Do we have a m_c_UMin that we can use instead?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124503



More information about the llvm-commits mailing list