Merge DCE and unreachable block elimination into a new utility 'simplifyRegions'.
authorRiver Riddle <riverriddle@google.com>
Wed, 20 Nov 2019 23:23:52 +0000 (15:23 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 20 Nov 2019 23:53:19 +0000 (15:53 -0800)
commitfafb708b9a0bb4adbdcba0cd7a7cdacf55211696
tree999632ad5284848ab0d4d8ae9765da598815d346
parentd6a70b31be42d2c41b7fc7e8ecc4c803deb867c5
Merge DCE and unreachable block elimination into a new utility 'simplifyRegions'.

This moves the different canonicalizations of regions into one place and invokes them in the fixed-point iteration of the canonicalizer.

PiperOrigin-RevId: 281617072
mlir/include/mlir/Transforms/Passes.h
mlir/include/mlir/Transforms/RegionUtils.h
mlir/lib/Transforms/CMakeLists.txt
mlir/lib/Transforms/DCE.cpp [deleted file]
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
mlir/lib/Transforms/Utils/RegionUtils.cpp
mlir/test/Transforms/canonicalize-dce.mlir [moved from mlir/test/Transforms/dce.mlir with 89% similarity]
mlir/test/lib/TestDialect/TestOps.td