blob: 21605689d647c8c9e0e38fc6b10dfc50f057c449 [file] [log] [blame]
Stella Stamenova09dbdcf2020-10-09 23:27:501// UNSUPPORTED: system-windows
Mauricio Sifontes8f4859d2020-08-18 16:47:062// RUN: mlir-reduce %s -test %S/failure-test.sh -pass-test DCE | FileCheck %s
3// 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
Rahul Joshi8b5a3e42020-11-09 16:23:558func 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
Rahul Joshi8b5a3e42020-11-09 16:23:5511func 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>) {
Mauricio Sifontes8f4859d2020-08-18 16:47:0614func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
15 "test.crashOp" () : () -> ()
16 return
17}