2020-12-31 06:16:13 +08:00
|
|
|
// configuration: -mlir-disable-threading=true -pass-pipeline='func(cse,canonicalize)' -print-ir-before=cse
|
2020-12-31 02:46:01 +08:00
|
|
|
|
|
|
|
// Test of the reproducer run option. The first line has to be the
|
|
|
|
// configuration (matching what is produced by reproducer).
|
|
|
|
|
|
|
|
// RUN: mlir-opt %s -run-reproducer 2>&1 | FileCheck -check-prefix=BEFORE %s
|
|
|
|
|
|
|
|
func @foo() {
|
|
|
|
%0 = constant 0 : i32
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func @bar() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2021-06-11 08:34:33 +08:00
|
|
|
// BEFORE: // -----// IR Dump Before{{.*}}CSE //----- //
|
2020-12-31 02:46:01 +08:00
|
|
|
// BEFORE-NEXT: func @foo()
|
2021-06-11 08:34:33 +08:00
|
|
|
// BEFORE: // -----// IR Dump Before{{.*}}CSE //----- //
|
2020-12-31 02:46:01 +08:00
|
|
|
// BEFORE-NEXT: func @bar()
|
2021-06-11 08:34:33 +08:00
|
|
|
// BEFORE-NOT: // -----// IR Dump Before{{.*}}Canonicalizer //----- //
|
|
|
|
// BEFORE-NOT: // -----// IR Dump After
|