[PATCH] D152730: [ConstraintElim] Add A < B if A is an increasing phi for A != B.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 13:37:30 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/ConstraintElimination.cpp:1122
+  Info.addFactForInductionPhi(cast<CmpInst>(And->getOperand(0)), Pred, A, B,
+                              CB.NumIn, CB.NumOut, DFSInStack, DT, LI);
   // Optimistically add fact from first condition.
----------------
Why is this only done for the "and" case and not for normal dominating conditions?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152730



More information about the llvm-commits mailing list