[all-commits] [llvm/llvm-project] 1b1516: [mlir][sparse] lower trivial tensor.cast on identi...

Aart Bik via All-commits all-commits at lists.llvm.org
Mon Oct 25 10:30:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b15160ef3b3edaf6fdcf403e5aa9e11ba217ce1
      https://github.com/llvm/llvm-project/commit/1b15160ef3b3edaf6fdcf403e5aa9e11ba217ce1
  Author: Aart Bik <ajcbik at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
    M mlir/test/Dialect/SparseTensor/conversion.mlir

  Log Message:
  -----------
  [mlir][sparse] lower trivial tensor.cast on identical sparse tensors

Even though tensor.cast is not part of the sparse tensor dialect,
it may be used to cast static dimension sizes to dynamic dimension
sizes for sparse tensors without changing the actual sparse tensor
itself. Those cases should be lowered properly when replacing sparse
tensor types with their opaque pointers. Likewise, no op sparse
conversions are handled by this revision in a similar manner.

Reviewed By: bixia

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




More information about the All-commits mailing list