Skip to content

Commit 8474a20

Browse files
committed
[mlir][sparse] bring CHECK tests back (but disabled)
We have a strange nondeterministic failure on windows by not getting the desired fill statement in the resulting IR. Probably something wrong with our option passing or pass construction? #59016 (comment) Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D138089
1 parent e5739eb commit 8474a20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlir/test/Dialect/SparseTensor/codegen_buffer_initialization.mlir

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
#SV = #sparse_tensor.encoding<{ dimLevelType = [ "compressed" ] }>
44

5+
// FIXME: windows fails on the "CH__ECK" tests below, non-deterministically
6+
57
// CHECK-LABEL: func @sparse_alloc_sparse_vector(
68
// CHECK-SAME: %[[A:.*]]: index) ->
79
// CHECK-SAME: memref<1xindex>, memref<3xindex>, memref<?xindex>, memref<?xindex>, memref<?xf64>
810
// CHECK-DAG: %[[C0:.*]] = arith.constant 0 : index
911
// CHECK-DAG: %[[C1:.*]] = arith.constant 1 : index
12+
// CH__ECK-DAG: %[[F0:.*]] = arith.constant 0.000000e+00 : f64
1013
// CHECK: %[[T0:.*]] = memref.alloc() : memref<1xindex>
1114
// CHECK: %[[T1:.*]] = memref.alloc() : memref<3xindex>
1215
// CHECK: %[[T2:.*]] = memref.alloc() : memref<16xindex>
@@ -17,6 +20,7 @@
1720
// CHECK: linalg.fill ins(%[[C0]] : index) outs(%[[T4]] : memref<16xindex>)
1821
// CHECK: %[[T6:.*]] = memref.alloc() : memref<16xf64>
1922
// CHECK: %[[T7:.*]] = memref.cast %[[T6]] : memref<16xf64> to memref<?xf64>
23+
// CH__ECK: linalg.fill ins(%[[F0]] : f64) outs(%[[T6]] : memref<16xf64>)
2024
// CHECK: linalg.fill ins(%[[C0]] : index) outs(%[[T1]] : memref<3xindex>)
2125
// CHECK: memref.store %[[A]], %[[T0]][%[[C0]]] : memref<1xindex>
2226
// CHECK: %[[P0:.*]] = sparse_tensor.push_back %[[T1]], %[[T3]]

0 commit comments

Comments
 (0)