[Mlir-commits] [mlir] [mlir][dataflow] disallow outside use of propagateIfChanged for DataFlowSolver (PR #120885)
Jeff Niu
llvmlistbot at llvm.org
Mon Jan 27 09:28:03 PST 2025
================
@@ -104,12 +104,16 @@ Location LatticeAnchor::getLoc() const {
//===----------------------------------------------------------------------===//
LogicalResult DataFlowSolver::initializeAndRun(Operation *top) {
+ // Enable enqueue to the worklist.
+ isRunning = true;
----------------
Mogball wrote:
You can use `llvm::make_scope_exit` to ensure the flag is reset upon leaving the function
https://github.com/llvm/llvm-project/pull/120885
More information about the Mlir-commits
mailing list