1// RUN: mlir-opt %s --run-reproducer -dump-pass-pipeline 2>&1 | FileCheck %s 2// RUN: mlir-opt %s --run-reproducer -mlir-print-ir-before=cse 2>&1 | FileCheck -check-prefix=BEFORE %s 3 4func.func @foo() { 5 %0 = arith.constant 0 : i32 6 return 7} 8 9func.func @bar() { 10 return 11} 12 13{-# 14 external_resources: { 15 mlir_reproducer: { 16 verify_each: true, 17 // CHECK: builtin.module(func.func(cse,canonicalize{ max-iterations=1 max-num-rewrites=-1 region-simplify=normal test-convergence=false top-down=false})) 18 pipeline: "builtin.module(func.func(cse,canonicalize{max-iterations=1 max-num-rewrites=-1 region-simplify=normal top-down=false}))", 19 disable_threading: true 20 } 21 } 22#-} 23 24// BEFORE: // -----// IR Dump Before{{.*}}CSE (cse) //----- // 25// BEFORE-NEXT: func @foo() 26// BEFORE: // -----// IR Dump Before{{.*}}CSE (cse) //----- // 27// BEFORE-NEXT: func @bar() 28// BEFORE-NOT: // -----// IR Dump Before{{.*}}Canonicalizer (canonicalize) //----- // 29// BEFORE-NOT: // -----// IR Dump After 30