HomePhabricator

[MLIR] fix greedy pattern rewrite driver iteration on change

Authored by bondhugula on Apr 4 2020, 7:59 PM.

Description

[MLIR] fix greedy pattern rewrite driver iteration on change

Removing dead ops should make the outer loop of the pattern rewriting
driver run again. Although its operands are added to the worklist, if no
changes happenned to them or remaining ops in the worklist, the driver
wouldn't run once again - but it should be.

Differential Revision: https://reviews.llvm.org/D77483

Details