bolt/deps/llvm-18.1.8/mlir/test/Dialect/PDL/canonicalize.mlir
2025-02-14 19:21:04 +01:00

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
}
}