[MLIR] fix greedy pattern rewrite driver iteration on change
authorUday Bondhugula <uday@polymagelabs.com>
Sun, 5 Apr 2020 02:59:52 +0000 (08:29 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Sun, 5 Apr 2020 13:45:46 +0000 (19:15 +0530)
commitf875e55ba92732a20b0be2e4f11046c79ff0c22a
treeae215adab70d11af009ee31d8a593fdfd1ea7cef
parent9e1455dc236252a60066c312c6d2e8a7ed66f609
[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
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp