11 lines · plain
1// RUN: mlir-opt -canonicalize="test-convergence" %s | FileCheck %s2 3pdl.pattern @operation_op : benefit(1) {4 %root = operation "foo.op"5 rewrite %root {6 // CHECK: operation "bar.unused"7 %unused_rewrite = operation "bar.unused"8 erase %root9 }10}11