[all-commits] [llvm/llvm-project] 02c8eb: [mlir][SparseTensor] handle uninitialized transMap...
Vito Secona via All-commits
all-commits at lists.llvm.org
Thu May 7 11:47:10 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 02c8eb80ae0d5bd841c81b5439cee197b29fe4fc
https://github.com/llvm/llvm-project/commit/02c8eb80ae0d5bd841c81b5439cee197b29fe4fc
Author: Vito Secona <77039267+secona at users.noreply.github.com>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
M mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp
M mlir/test/Dialect/SparseTensor/encoding_with_symbols.mlir
Log Message:
-----------
[mlir][SparseTensor] handle uninitialized transMap when translating shape (#195506)
When translating a shape using
`SparseTensorEncodingAttr::translateShape` from lvl to dim, there is a
possibility that the `transMap` map (`lvlToDim` map under the hood) is
uninitialized. This leads to an assertion error when calling the
`.getResults()` method.
This change adds a guard to check if the `transMap` map is uninitialized
and return early with dynamic shapes. This change also adds a regression
test based on the reproduce MLIR code.
Closes #195464
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