[all-commits] [llvm/llvm-project] 333f98: [mlir][sparse][nfc] Use tensor.generate in sparse ...

vmrajas via All-commits all-commits at lists.llvm.org
Mon Aug 8 09:45:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 333f98b4b68872fd7436d987f2e3dfb4f3e9efba
      https://github.com/llvm/llvm-project/commit/333f98b4b68872fd7436d987f2e3dfb4f3e9efba
  Author: Rajas Vanjape <vmrajas at google.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir

  Log Message:
  -----------
  [mlir][sparse][nfc] Use tensor.generate in sparse integration tests

Currently, dense tensors are initialized in Sparse Integration tests using
"buffer.tensor_alloc and scf.for" . This makes code harder to read and maintain.
This diff uses tensor.generate instead to initialize dense tensors.

Testing: Ran integration tests after building with -DLLVM_USE_SANITIZER=Address flag.

Reviewed By: springerm

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




More information about the All-commits mailing list