[all-commits] [llvm/llvm-project] 64e171: Avoid unnecessary output buffer allocation and ini...

Bixia Zheng via All-commits all-commits at lists.llvm.org
Thu Dec 9 08:29:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64e171c2d0c34536502b7707184600ff68eff3d4
      https://github.com/llvm/llvm-project/commit/64e171c2d0c34536502b7707184600ff68eff3d4
  Author: Bixia Zheng <bixia at google.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M mlir/test/Integration/Dialect/SparseTensor/python/test_SpMM.py

  Log Message:
  -----------
  Avoid unnecessary output buffer allocation and initialization.

The sparse tensor code generator allocates memory for the output tensor. As
such, we only need to allocate a MemRefDescriptor to receive the output tensor
and do not need to allocate and initialize the storage for the tensor.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D115292




More information about the All-commits mailing list