[PATCH] D129753: [SCEV] Prove condition invariance via context

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 18:09:18 PDT 2022


apilipenko added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:10816-10817
+    assert(ArLHS->hasNoUnsignedWrap() && "Is a requirement of monotonicity!");
+    // If we can prove that ArLHS <s RHS, and RHS >=s 0, and we know that ArLHS
+    // does not cross zero, there are two options:
+    // - ArLHS is always negative. It means that ArLHS <u RHS is always false;
----------------
> we know that ArLHS does not cross zero

Where do you get this fact from?





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

https://reviews.llvm.org/D129753



More information about the llvm-commits mailing list