summaryrefslogtreecommitdiff
path: root/mlir/test/Dialect/PDL/canonicalize.mlir
blob: ee2a6f71f86cc7c7809a366b74864ab0cec41921 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: mlir-opt -canonicalize="test-convergence" %s | FileCheck %s

pdl.pattern @operation_op : benefit(1) {
  %root = operation "foo.op"
  rewrite %root {
    // CHECK: operation "bar.unused"
    %unused_rewrite = operation "bar.unused"
    erase %root
  }
}