2 // RUN: mlir-opt %s -verify-each=true -pass-pipeline='builtin.module(func.func(test-stats-pass,test-stats-pass))' -mlir-pass-statistics -mlir-pass-statistics-display=list 2>&1 | FileCheck -check-prefix=LIST %s
3 // RUN: mlir-opt %s -verify-each=true -pass-pipeline='builtin.module(func.func(test-stats-pass,test-stats-pass))' -mlir-pass-statistics -mlir-pass-statistics-display=pipeline 2>&1 | FileCheck -check-prefix=PIPELINE %s
5 // LIST: Pass statistics report
6 // LIST: TestStatisticPass
7 // LIST-NEXT: (S) {{0|8}} num-ops - Number of operations counted
8 // LIST-NEXT: (S) {{0|8}} num-ops2 - Number of operations counted one more time
11 // PIPELINE: Pass statistics report
12 // PIPELINE: 'func.func' Pipeline
13 // PIPELINE-NEXT: TestStatisticPass
14 // PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted
15 // PIPELINE-NEXT: (S) {{0|4}} num-ops2 - Number of operations counted one more time
16 // PIPELINE-NEXT: TestStatisticPass
17 // PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted
18 // PIPELINE-NEXT: (S) {{0|4}} num-ops2 - Number of operations counted one more time