Support folding of ops with inner ops in GreedyPatternRewriteDriver.
authorAndy Ly <lyandy@google.com>
Mon, 26 Aug 2019 16:44:09 +0000 (09:44 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 26 Aug 2019 16:44:39 +0000 (09:44 -0700)
commit6a501e3d1b6725bf63f9cf053f7674c042794d49
treeb483e805d95331179b38b5cae76507bad774b0f9
parent96e96e0243ea8a4ce4d179a368639a1a565768d7
Support folding of ops with inner ops in GreedyPatternRewriteDriver.

This fixes a bug when folding ops with inner ops and inner ops are still being visited.

PiperOrigin-RevId: 265475780
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
mlir/test/Transforms/test-canonicalize.mlir
mlir/test/lib/TestDialect/TestDialect.cpp
mlir/test/lib/TestDialect/TestOps.td