[Mlir-commits] [mlir] [mlir] Optimize `isOpTriviallyDead` greedy rewriter checks for deeply nested IR (PR #231423)
Mehdi Amini
llvmlistbot at llvm.org
Tue Oct 13 04:03:32 PDT 2026
================
@@ -731,6 +745,7 @@ void GreedyPatternRewriteDriver::addOperandsToWorklist(Operation *op) {
}
void GreedyPatternRewriteDriver::notifyOperationErased(Operation *op) {
+ deadnessCache.invalidate(op);
----------------
joker-eph wrote:
Something I did in https://github.com/llvm/llvm-project/pull/225814 was to extract the cache in a separate listener to isolate the logic instead of mixing it with the driver. What would it look like here?
https://github.com/llvm/llvm-project/pull/231423
More information about the Mlir-commits
mailing list