blob: e368343e056a0a9db86cb260062aa8e5b840520b [file] [log] [blame]
Mauricio Sifontes8f4859d2020-08-18 16:47:061// UNSUPPORTED: -windows-
2// 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
4// the @simple1 function remains as the other fucntions should be
5// removed by the dead code elimination pass.
6// CHECK-LABEL: func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
7
8// CHECK-NOT: func @dead_nested_function
9func @dead_private_function() attributes { sym_visibility = "private" }
10
11// CHECK-NOT: func @dead_nested_function
12func @dead_nested_function() attributes { sym_visibility = "nested" }
13
14func @simple1(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
15 "test.crashOp" () : () -> ()
16 return
17}