[mlir][transform] Add `transform.apply_dce` op
authorMatthias Springer <me@m-sp.org>
Sat, 22 Jul 2023 06:23:48 +0000 (08:23 +0200)
committerMatthias Springer <me@m-sp.org>
Sat, 22 Jul 2023 06:25:02 +0000 (08:25 +0200)
commitc2d5d348a81b60be322d461b70fc0cc2fbee8b73
tree7ee64a7b736ae65dd7c186aefc91564d1123dc07
parentb55ac6e9cb539a52e6bdc5ce6bf40258dd41f63e
[mlir][transform] Add `transform.apply_dce` op

Add a transform that eliminates dead operations. This is useful after certain transforms (such as fusion) that create/clone new IR but leave the original IR in place.

Differential Revision: https://reviews.llvm.org/D155954
mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
mlir/test/Dialect/Transform/test-interpreter.mlir