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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jul 18 05:16:17 PDT 2026


Author: lonely eagle
Date: 2026-07-18T20:16:12+08:00
New Revision: c69896aa8733ceed6e8cc982eec64b97f277f926

URL: https://github.com/llvm/llvm-project/commit/c69896aa8733ceed6e8cc982eec64b97f277f926
DIFF: https://github.com/llvm/llvm-project/commit/c69896aa8733ceed6e8cc982eec64b97f277f926.diff

LOG: [mlir][interface] Use populateAndCompare cleanup compare (NFC) (#200156)

Added: 
    

Modified: 
    mlir/lib/Interfaces/ValueBoundsOpInterface.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
index 02780048f7556..2ac5c8ffe46cb 100644
--- a/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
+++ b/mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
@@ -848,9 +848,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