[Mlir-commits] [mlir] [MLIR] Fix ErasedOpsListener false positives for newly created ops/blocks (PR #188956)
Matthias Springer
llvmlistbot at llvm.org
Fri Mar 27 06:43:48 PDT 2026
================
@@ -61,16 +62,38 @@ struct WalkAndApplyPatternsAction final
// ops/blocks. Because we use walk-based pattern application, erasing the
// op/block from the *next* iteration (e.g., a user of the visited op) is not
// valid. Note that this is only used with expensive pattern API checks.
+//
+// Ops and blocks that were *created* during the current pattern application are
----------------
matthias-springer wrote:
`during the current pattern application` --> `ErasedOpsListener::newlyCreatedOps` keeps track of newly created ops not just for the most recent pattern but across the entire walk.
https://github.com/llvm/llvm-project/pull/188956
More information about the Mlir-commits
mailing list