[llvm] [ConstraintElim] Simplify `MinMaxIntrinsic` (PR #75306)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 23 10:06:47 PST 2023


================
@@ -1009,6 +1009,13 @@ void State::addInfoFor(BasicBlock &BB) {
 
     if (isa<MinMaxIntrinsic>(&I)) {
       WorkList.push_back(FactOrCheck::getInstFact(DT.getNode(&BB), &I));
+      for (Use &U : I.uses()) {
+        auto *UserI = getContextInstForUse(U);
----------------
dtcxzyw wrote:

Done.

https://github.com/llvm/llvm-project/pull/75306


More information about the llvm-commits mailing list