Remove ops in regions/blocks from worklist when parent op is being removed via GreedyPatternRewriteDriver::replaceOp.

This fixes a bug where ops inside the parent op are visited even though the parent op has been removed.

PiperOrigin-RevId: 261953580
4 files changed
tree: f3948af9965e364573248d16a323f4c7ebd29801
  1. mlir/