[mlir][sparse] fix asan leak of two sparse vectors

Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D130914
This commit is contained in:
Aart Bik 2022-08-01 09:23:03 -07:00
parent 8e51917b39
commit 3b9bee1651
1 changed files with 2 additions and 0 deletions

View File

@ -537,6 +537,8 @@ module {
// Release the resources.
bufferization.dealloc_tensor %sv1 : tensor<?xf64, #SparseVector>
bufferization.dealloc_tensor %sv2 : tensor<?xf64, #SparseVector>
bufferization.dealloc_tensor %sv1_si : tensor<?xi32, #SparseVector>
bufferization.dealloc_tensor %sv2_si : tensor<?xi32, #SparseVector>
bufferization.dealloc_tensor %sm1 : tensor<?x?xf64, #DCSR>
bufferization.dealloc_tensor %sm2 : tensor<?x?xf64, #DCSR>
bufferization.dealloc_tensor %sm3 : tensor<4x4xf64, #DCSR>