[Mlir-commits] [mlir] [mlir][interface] Use populateAndCompare cleanup compare (PR #200156)

lonely eagle llvmlistbot at llvm.org
Thu May 28 03:59:10 PDT 2026


https://github.com/linuxlonelyeagle created https://github.com/llvm/llvm-project/pull/200156

None

>From 0972095abb58ca5d835baa9c33a5348ccf2456cd Mon Sep 17 00:00:00 2001
From: linuxlonelyeagle <2020382038 at qq.com>
Date: Thu, 28 May 2026 10:58:27 +0000
Subject: [PATCH] use populateAndCompare cleanup compare.

---
 mlir/lib/Interfaces/ValueBoundsOpInterface.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
index b2b33b7441c37..77465d4e00c68 100644
--- a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
+++ b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
@@ -820,9 +820,7 @@ bool ValueBoundsConstraintSet::compare(const Variable &lhs,
     return cstr.comparePos(lhsPos, cmp, rhsPos);
   };
   ValueBoundsConstraintSet cstr(lhs.getContext(), stopCondition);
-  lhsPos = cstr.populateConstraints(lhs.map, lhs.mapOperands);
-  rhsPos = cstr.populateConstraints(rhs.map, rhs.mapOperands);
-  return cstr.comparePos(lhsPos, cmp, rhsPos);
+  return cstr.populateAndCompare(lhs, cmp, rhs);
 }
 
 FailureOr<bool> ValueBoundsConstraintSet::strongCompare(const Variable &lhs,



More information about the Mlir-commits mailing list