10 lines
261 B
MLIR
10 lines
261 B
MLIR
// 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
|
|
}
|
|
}
|