[Mlir-commits] [mlir] mlir/Presburger: reinstate use of LogicalResult (PR #97415)

Mehdi Amini llvmlistbot at llvm.org
Tue Jul 2 09:32:26 PDT 2024


================
@@ -2201,13 +2203,13 @@ bool IntegerRelation::unionBoundingBox(const IntegerRelation &otherCst) {
     if (!extent.has_value())
       // TODO: symbolic extents when necessary.
       // TODO: handle union if a dimension is unbounded.
-      return false;
+      return failure();
 
     auto otherExtent = otherCst.getConstantBoundOnDimSize(
         d, &otherLb, &otherLbFloorDivisor, &otherUb);
     if (!otherExtent.has_value() || lbFloorDivisor != otherLbFloorDivisor)
       // TODO: symbolic extents when necessary.
-      return false;
+      return success();
----------------
joker-eph wrote:

Can you also add a test for this?

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


More information about the Mlir-commits mailing list