Stella Stamenova | 09dbdcf | 2020-10-09 23:27:50 | [diff] [blame] | 1 | // UNSUPPORTED: system-windows |
Chia-hung Duan | 222d30d | 2021-04-14 21:34:17 | [diff] [blame] | 2 | // RUN: mlir-reduce %s -opt-reduction-pass='opt-pass=symbol-dce test=%S/failure-test.sh' | FileCheck %s |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 3 | // This input should be reduced by the pass pipeline so that only |
Kazuaki Ishizaki | a23d055 | 2020-08-27 06:37:23 | [diff] [blame] | 4 | // the @simple1 function remains as the other functions should be |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 5 | // removed by the dead code elimination pass. |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 6 | |
Chia-hung Duan | cec2443 | 2021-03-22 17:44:50 | [diff] [blame] | 7 | // CHECK-NOT: func private @dead_private_function |
River Riddle | 63237cd | 2022-04-20 23:21:36 | [diff] [blame] | 8 | func.func private @dead_private_function() |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 9 | |
Chia-hung Duan | cec2443 | 2021-03-22 17:44:50 | [diff] [blame] | 10 | // CHECK-NOT: func nested @dead_nested_function |
River Riddle | 63237cd | 2022-04-20 23:21:36 | [diff] [blame] | 11 | func.func nested @dead_nested_function() |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 12 | |
Chia-hung Duan | cec2443 | 2021-03-22 17:44:50 | [diff] [blame] | 13 | // CHECK-LABEL: func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) { |
River Riddle | 63237cd | 2022-04-20 23:21:36 | [diff] [blame] | 14 | func.func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) { |
Chia-hung Duan | c484c7d | 2021-06-01 23:00:19 | [diff] [blame] | 15 | "test.op_crash" () : () -> () |
Mauricio Sifontes | 8f4859d | 2020-08-18 16:47:06 | [diff] [blame] | 16 | return |
| 17 | } |