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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Oct 11 11:23:31 PDT 2023


Author: Peiming Liu
Date: 2023-10-11T11:23:25-07:00
New Revision: 325576196bf9276296132858657330f814d407d7

URL: https://github.com/llvm/llvm-project/commit/325576196bf9276296132858657330f814d407d7
DIFF: https://github.com/llvm/llvm-project/commit/325576196bf9276296132858657330f814d407d7.diff

LOG: [mlir][sparse] remove tests (#68826)

Added: 
    

Modified: 
    

Removed: 
    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