[Mlir-commits] [mlir] [mlir] Avoid rewriting unreachable blocks in the greedy driver (PR #225814)

Mehdi Amini llvmlistbot at llvm.org
Mon Sep 28 02:12:23 PDT 2026


================

----------------
joker-eph wrote:

One issues is that we do the unreachable cleanup only in the case of the "region driver". The API that takes a list of operations  promises that operations outside its selected set remain unmodified (mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h:255). And eagerly erasing an entire unreachable block there would break that promise unfortunately.

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


More information about the Mlir-commits mailing list