2019-04-27 02:38:50 +08:00
|
|
|
// RUN: mlir-opt %s -disable-pass-threading=true -verify-each=true -cse -canonicalize -cse -pass-timing -pass-timing-display=list 2>&1 | FileCheck -check-prefix=LIST %s
|
|
|
|
// RUN: mlir-opt %s -disable-pass-threading=true -verify-each=true -cse -canonicalize -cse -pass-timing -pass-timing-display=pipeline 2>&1 | FileCheck -check-prefix=PIPELINE %s
|
|
|
|
// RUN: mlir-opt %s -disable-pass-threading=false -verify-each=true -cse -canonicalize -cse -pass-timing -pass-timing-display=list 2>&1 | FileCheck -check-prefix=MT_LIST %s
|
|
|
|
// RUN: mlir-opt %s -disable-pass-threading=false -verify-each=true -cse -canonicalize -cse -pass-timing -pass-timing-display=pipeline 2>&1 | FileCheck -check-prefix=MT_PIPELINE %s
|
2019-09-09 10:57:25 +08:00
|
|
|
// RUN: mlir-opt %s -disable-pass-threading=false -verify-each=false -test-pm-nested-pipeline -pass-timing -pass-timing-display=pipeline 2>&1 | FileCheck -check-prefix=NESTED_MT_PIPELINE %s
|
2019-03-12 01:09:07 +08:00
|
|
|
|
|
|
|
// LIST: Pass execution timing report
|
|
|
|
// LIST: Total Execution Time:
|
|
|
|
// LIST: Name
|
|
|
|
// LIST-DAG: Canonicalizer
|
2019-09-03 10:24:47 +08:00
|
|
|
// LIST-DAG: Verifier
|
2019-03-12 01:09:07 +08:00
|
|
|
// LIST-DAG: CSE
|
|
|
|
// LIST-DAG: DominanceInfo
|
2019-03-28 05:02:26 +08:00
|
|
|
// LIST: Total
|
2019-03-12 01:09:07 +08:00
|
|
|
|
|
|
|
// PIPELINE: Pass execution timing report
|
|
|
|
// PIPELINE: Total Execution Time:
|
|
|
|
// PIPELINE: Name
|
2019-09-03 10:24:47 +08:00
|
|
|
// PIPELINE-NEXT: 'func' Pipeline
|
2019-03-12 01:09:07 +08:00
|
|
|
// PIPELINE-NEXT: CSE
|
|
|
|
// PIPELINE-NEXT: (A) DominanceInfo
|
2019-09-03 10:24:47 +08:00
|
|
|
// PIPELINE-NEXT: Verifier
|
2019-03-12 01:09:07 +08:00
|
|
|
// PIPELINE-NEXT: Canonicalizer
|
2019-09-03 10:24:47 +08:00
|
|
|
// PIPELINE-NEXT: Verifier
|
2019-03-12 01:09:07 +08:00
|
|
|
// PIPELINE-NEXT: CSE
|
|
|
|
// PIPELINE-NEXT: (A) DominanceInfo
|
2019-09-03 10:24:47 +08:00
|
|
|
// PIPELINE-NEXT: Verifier
|
|
|
|
// PIPELINE-NEXT: Verifier
|
2019-03-12 01:09:07 +08:00
|
|
|
// PIPELINE-NEXT: Total
|
2019-03-28 05:02:26 +08:00
|
|
|
|
|
|
|
// MT_LIST: Pass execution timing report
|
|
|
|
// MT_LIST: Total Execution Time:
|
2019-03-28 08:43:08 +08:00
|
|
|
// MT_LIST: Name
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_LIST-DAG: Canonicalizer
|
2019-09-03 10:24:47 +08:00
|
|
|
// MT_LIST-DAG: Verifier
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_LIST-DAG: CSE
|
|
|
|
// MT_LIST-DAG: DominanceInfo
|
|
|
|
// MT_LIST: Total
|
|
|
|
|
|
|
|
// MT_PIPELINE: Pass execution timing report
|
|
|
|
// MT_PIPELINE: Total Execution Time:
|
2019-03-28 08:43:08 +08:00
|
|
|
// MT_PIPELINE: Name
|
2019-09-03 10:24:47 +08:00
|
|
|
// MT_PIPELINE-NEXT: 'func' Pipeline
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_PIPELINE-NEXT: CSE
|
|
|
|
// MT_PIPELINE-NEXT: (A) DominanceInfo
|
2019-09-03 10:24:47 +08:00
|
|
|
// MT_PIPELINE-NEXT: Verifier
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_PIPELINE-NEXT: Canonicalizer
|
2019-09-03 10:24:47 +08:00
|
|
|
// MT_PIPELINE-NEXT: Verifier
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_PIPELINE-NEXT: CSE
|
|
|
|
// MT_PIPELINE-NEXT: (A) DominanceInfo
|
2019-09-03 10:24:47 +08:00
|
|
|
// MT_PIPELINE-NEXT: Verifier
|
|
|
|
// MT_PIPELINE-NEXT: Verifier
|
2019-03-28 05:02:26 +08:00
|
|
|
// MT_PIPELINE-NEXT: Total
|
|
|
|
|
2019-09-09 10:57:25 +08:00
|
|
|
// NESTED_MT_PIPELINE: Pass execution timing report
|
|
|
|
// NESTED_MT_PIPELINE: Total Execution Time:
|
|
|
|
// NESTED_MT_PIPELINE: Name
|
2019-09-10 00:51:59 +08:00
|
|
|
// NESTED_MT_PIPELINE-NEXT: Pipeline Collection : ['func', 'module']
|
2019-09-09 10:57:25 +08:00
|
|
|
// NESTED_MT_PIPELINE-NEXT: 'func' Pipeline
|
|
|
|
// NESTED_MT_PIPELINE-NEXT: TestFunctionPass
|
2019-09-10 00:51:59 +08:00
|
|
|
// NESTED_MT_PIPELINE-NEXT: 'module' Pipeline
|
|
|
|
// NESTED_MT_PIPELINE-NEXT: TestModulePass
|
|
|
|
// NESTED_MT_PIPELINE-NEXT: 'func' Pipeline
|
|
|
|
// NESTED_MT_PIPELINE-NEXT: TestFunctionPass
|
2019-09-09 10:57:25 +08:00
|
|
|
// NESTED_MT_PIPELINE-NEXT: Total
|
|
|
|
|
2019-03-28 05:02:26 +08:00
|
|
|
func @foo() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func @bar() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func @baz() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func @foobar() {
|
|
|
|
return
|
|
|
|
}
|
2019-09-09 10:57:25 +08:00
|
|
|
|
|
|
|
module {
|
|
|
|
func @baz() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func @foobar() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|