The GreedyPatternRewriteDriver was extended to enqueue ancestors in D140304. With this change, MultiOpPatternRewriteDriver behaves the same way.
Note: MultiOpPatternRewriteDriver now also has a scope that limits how far we go when checking ancestors. By default, this is the first common region of all given ops.
Depends On: D141921
The comment should be updated, now the invariant is less clear: what is the use-case when this is not set?
Also when is the state reset?