[all-commits] [llvm/llvm-project] 129ade: [mlir][sparse] Replace `getSparseTensorType` with ...

Longsheng Mou via All-commits all-commits at lists.llvm.org
Sun Sep 29 18:17:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 129ade21bdad5f09206b773cd0591a9616ad0ca4
      https://github.com/llvm/llvm-project/commit/129ade21bdad5f09206b773cd0591a9616ad0ca4
  Author: Longsheng Mou <longshengmou at gmail.com>
  Date:   2024-09-30 (Mon, 30 Sep 2024)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
    M mlir/test/Dialect/SparseTensor/codegen.mlir

  Log Message:
  -----------
  [mlir][sparse] Replace `getSparseTensorType` with `tryGetSparseTensorType` (#109435)

This PR fixes a bug in `SparseTensorDimOpRewriter` when `tensor.dim` has
an unranked tensor type. To prevent crashes, we now use
`tryGetSparseTensorType` instead of `getSparseTensorType`. Fixes
#107807.



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