[Mlir-commits] [mlir] [mlir][IntegerRangeAnalysis] expose maybeReplaceWithConstant (PR #133151)

Krzysztof Drewniak llvmlistbot at llvm.org
Wed Mar 26 13:23:30 PDT 2025


================
@@ -83,6 +84,9 @@ LogicalResult staticallyNonNegative(DataFlowSolver &solver, Operation *op);
 /// to use a non-64-bit index.
 LogicalResult staticallyNonNegative(DataFlowSolver &solver, Value v);
 
+LogicalResult maybeReplaceWithConstant(DataFlowSolver &solver,
+                                       PatternRewriter &rewriter, Value value);
----------------
krzysz00 wrote:

This could be an `RewriterBase &` since this isn't necessarily being called in a pattern context?

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


More information about the Mlir-commits mailing list