[Mlir-commits] [mlir] [mlir] Extend affine.min/max ValueBoundsOpInterfaceImpls (PR #118840)

Matthias Springer llvmlistbot at llvm.org
Tue Jan 21 00:04:09 PST 2025


================
@@ -88,6 +109,27 @@ struct AffineMaxOpInterface
           expr.replaceDimsAndSymbols(dimReplacements, symReplacements);
       cstr.bound(value) >= bound;
     }
+    // Get all constant upper bounds, choose maximum, and set upper bound to it.
+    MLIRContext *ctx = op->getContext();
----------------
matthias-springer wrote:

This piece of code looks very similar to the one above. Maybe some functionality can be put into a shared static function. Not sure if it's really possible / practical...

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


More information about the Mlir-commits mailing list