[Mlir-commits] [mlir] [mlir][sparse] remove tests (PR #68826)

Peiming Liu llvmlistbot at llvm.org
Wed Oct 11 11:17:54 PDT 2023


https://github.com/PeimingLiu created https://github.com/llvm/llvm-project/pull/68826

None

>From f69b5ceee6001929dd9af1e3a993b6a0cac0b275 Mon Sep 17 00:00:00 2001
From: Peiming Liu <peiming at google.com>
Date: Wed, 11 Oct 2023 18:17:20 +0000
Subject: [PATCH] [mlir][sparse] remove tests

---
 .../SparseTensor/codegen_sparse_dealloc.mlir  | 29 -------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 mlir/test/Dialect/SparseTensor/codegen_sparse_dealloc.mlir

diff --git a/mlir/test/Dialect/SparseTensor/codegen_sparse_dealloc.mlir b/mlir/test/Dialect/SparseTensor/codegen_sparse_dealloc.mlir
deleted file mode 100644
index 49994a33c1911c6..000000000000000
--- a/mlir/test/Dialect/SparseTensor/codegen_sparse_dealloc.mlir
+++ /dev/null
@@ -1,29 +0,0 @@
-// UNSUPPORTED: target={{.*}}
-// TODO: the test is temporarily disabled (we probably do not need the option anymore by switch to buffer deallcation pass)
-//
-// RUN: mlir-opt %s --post-sparsification-rewrite="enable-runtime-library=false" \
-// RUN:    --sparse-tensor-codegen=create-sparse-deallocs=false \
-// RUN:    --canonicalize --cse | FileCheck %s -check-prefix=CHECK-NO-DEALLOC
-
-// RUN: mlir-opt %s --post-sparsification-rewrite="enable-runtime-library=false" \
-// RUN:    --sparse-tensor-codegen=create-sparse-deallocs=true \
-// RUN:    --canonicalize --cse | FileCheck %s -check-prefix=CHECK-DEALLOC
-
-#CSR = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed)}>
-#CSC = #sparse_tensor.encoding<{
-  map = (d0, d1) -> (d1 : dense, d0 : compressed),
-}>
-
-//
-// No memref.dealloc is user-requested so
-// CHECK-NO-DEALLOC-LABEL: @sparse_convert_permuted
-// CHECK-NO-DEALLOC-NOT: memref.dealloc
-//
-// Otherwise memref.dealloc is created to free temporary sparse buffers.
-// CHECK-DEALLOC-LABEL: @sparse_convert_permuted
-// CHECK-DEALLOC: memref.dealloc
-//
-func.func @sparse_convert_permuted(%arg0: tensor<?x?xf32, #CSR>) -> tensor<?x?xf32, #CSC> {
-  %0 = sparse_tensor.convert %arg0 : tensor<?x?xf32, #CSR> to tensor<?x?xf32, #CSC>
-  return %0 : tensor<?x?xf32, #CSC>
-}



More information about the Mlir-commits mailing list