[Mlir-commits] [mlir] [mlir][affine|ValueBounds] Add transform to simplify affine min max ops with ValueBoundsOpInterface (PR #145068)

Nicolas Vasilache llvmlistbot at llvm.org
Sat Jun 21 00:56:56 PDT 2025


================
@@ -254,6 +261,12 @@ class ValueBoundsConstraintSet
   /// prove the relation or until it ran out of IR.
   static bool compare(const Variable &lhs, ComparisonOperator cmp,
                       const Variable &rhs);
+  /// This function is similar to `ValueBoundsConstraintSet::compare`, except
+  /// that it returns false if `!(lhs cmp rhs)`, and `failure` if neither the
+  /// relation nor its inverse relation could be proven.
+  static llvm::FailureOr<bool> strongCompare(const Variable &lhs,
----------------
nicolasvasilache wrote:

isn't the proper mathematical term "strict" comparison?

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


More information about the Mlir-commits mailing list