[all-commits] [llvm/llvm-project] 9e8d93: [mlir][sparse] allow foreach operation to generate...

PeimingLiu via All-commits all-commits at lists.llvm.org
Thu Feb 16 15:23:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e8d9316ceaf771fdb5507fa2adebcf0605efd47
      https://github.com/llvm/llvm-project/commit/9e8d9316ceaf771fdb5507fa2adebcf0605efd47
  Author: Peiming Liu <peiming at google.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
    M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
    M mlir/test/Dialect/SparseTensor/convert_dense2sparse.mlir
    M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_conversion_ptr.mlir

  Log Message:
  -----------
  [mlir][sparse] allow foreach operation to generate out-of-order loop on non-annotated tensor.

No need for a temp COO and sort even when converting dense -> CSC, we can instead rotate the loop to yield a ordered coordinates at beginning.

Reviewed By: aartbik

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




More information about the All-commits mailing list