Skip to content

Commit d3a3c3b

Browse files
committed
revert verifier llvm/llvm-project@8690690
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
1 parent 59a255c commit d3a3c3b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

compiler/src/iree/compiler/GlobalOptimization/test/remove_zero_extent_tensors.mlir

+11
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ util.func public @zero_sized_tensor_insert(%arg0 : tensor<?x?xf32>, %arg1 : tens
2525
}
2626
// CHECK: util.func public @zero_sized_tensor_insert(%[[ARG0:.+]]: tensor<?x?xf32>
2727
// CHECK: util.return %[[ARG0]]
28+
29+
// -----
30+
31+
util.func public @zero_sizes_tensor_insert_dest(%arg0 : tensor<0x?xf32>, %arg1 : index) -> tensor<0x?xf32> {
32+
%0 = tensor.empty(%arg1) : tensor<0x?xf32>
33+
%1 = tensor.insert_slice %arg0 into %0[0, 0] [0, %arg1] [1, 1] : tensor<0x?xf32> into tensor<0x?xf32>
34+
util.return %1 : tensor<0x?xf32>
35+
}
36+
// CHECK: util.func public @zero_sizes_tensor_insert_dest(%[[ARG0:.+]]: tensor<0x?xf32>, %[[ARG1:.+]]: index)
37+
// CHECK: %[[EMPTY:.+]] = tensor.empty(%[[ARG1]])
38+
// CHECK: util.return %[[EMPTY]]

0 commit comments

Comments
 (0)