[all-commits] [llvm/llvm-project] a6eb19: [mlir][sparse] Fix memory leaks (part 4)

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Mar 18 20:25:58 PDT 2024


  Branch: refs/heads/users/matthias-springer/fix_leaks_19
  Home:   https://github.com/llvm/llvm-project
  Commit: a6eb1967aee76f1fd2cc04d39d79a135a8331dad
      https://github.com/llvm/llvm-project/commit/a6eb1967aee76f1fd2cc04d39d79a135a8331dad
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M mlir/test/Integration/Dialect/SparseTensor/CPU/reshape_dot.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_pack.mlir

  Log Message:
  -----------
  [mlir][sparse] Fix memory leaks (part 4)

This commit fixes memory leaks in sparse tensor integration tests by
adding `bufferization.dealloc_tensor` ops.

Note: Buffer deallocation will be automated in the future with the
ownership-based buffer deallocation pass, making `dealloc_tensor`
obsolete (only codegen path, not when using the runtime library).

This commit fixes the remaining memory leaks in the MLIR test suite.
`check-mlir` now passes when built with ASAN.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list