blob: 57b5fd9c2ea738f7e359852f2137fb2d9fb15c31 [file] [log] [blame]
Stella Stamenova09dbdcf2020-10-09 23:27:501// UNSUPPORTED: system-windows
Chia-hung Duan222d30d2021-04-14 21:34:172// RUN: mlir-reduce %s -opt-reduction-pass='opt-pass=symbol-dce test=%S/failure-test.sh' | FileCheck %s
Mauricio Sifontes8f4859d2020-08-18 16:47:063// This input should be reduced by the pass pipeline so that only
Kazuaki Ishizakia23d0552020-08-27 06:37:234// the @simple1 function remains as the other functions should be
Mauricio Sifontes8f4859d2020-08-18 16:47:065// removed by the dead code elimination pass.
Mauricio Sifontes8f4859d2020-08-18 16:47:066
Chia-hung Duancec24432021-03-22 17:44:507// CHECK-NOT: func private @dead_private_function
River Riddle63237cd2022-04-20 23:21:368func.func private @dead_private_function()
Mauricio Sifontes8f4859d2020-08-18 16:47:069
Chia-hung Duancec24432021-03-22 17:44:5010// CHECK-NOT: func nested @dead_nested_function
River Riddle63237cd2022-04-20 23:21:3611func.func nested @dead_nested_function()
Mauricio Sifontes8f4859d2020-08-18 16:47:0612
Chia-hung Duancec24432021-03-22 17:44:5013// CHECK-LABEL: func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
River Riddle63237cd2022-04-20 23:21:3614func.func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
Chia-hung Duanc484c7d2021-06-01 23:00:1915 "test.op_crash" () : () -> ()
Mauricio Sifontes8f4859d2020-08-18 16:47:0616 return
17}