diff options
| author | River Riddle <riverriddle@google.com> | 2019-11-20 15:23:52 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-20 15:53:19 -0800 |
| commit | fafb708b9a0bb4adbdcba0cd7a7cdacf55211696 (patch) | |
| tree | 999632ad5284848ab0d4d8ae9765da598815d346 /mlir/test/lib/TestDialect | |
| parent | d6a70b31be42d2c41b7fc7e8ecc4c803deb867c5 (diff) | |
| download | bcm5719-llvm-fafb708b9a0bb4adbdcba0cd7a7cdacf55211696.tar.gz bcm5719-llvm-fafb708b9a0bb4adbdcba0cd7a7cdacf55211696.zip | |
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
Diffstat (limited to 'mlir/test/lib/TestDialect')
| -rw-r--r-- | mlir/test/lib/TestDialect/TestOps.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/test/lib/TestDialect/TestOps.td b/mlir/test/lib/TestDialect/TestOps.td index 1ccbda2f9b1..2c07a2557dc 100644 --- a/mlir/test/lib/TestDialect/TestOps.td +++ b/mlir/test/lib/TestDialect/TestOps.td @@ -409,6 +409,10 @@ def UpdateAttr : Pat<(I32ElementsAttrOp $attr), (I32ElementsAttrOp ConstantAttr<I32ElementsAttr, "0">), [(IsNotScalar $attr)]>; +def TestBranchOp : TEST_Op<"br", [Terminator]> { + let arguments = (ins Variadic<AnyType>:$operands); +} + //===----------------------------------------------------------------------===// // Test Patterns //===----------------------------------------------------------------------===// |

