[Mlir-commits] [mlir] [mlir][sparse] Fix number_of_entries for loose-compressed tensors (PR #224167)

Kohei Yamaguchi llvmlistbot at llvm.org
Mon Sep 28 17:11:50 PDT 2026


sott0n wrote:

Thanks for pointing this out. I checked the in-tree uses and could not find `number_of_entries` being applied to an externally padded sparse tensor, so I kept this PR scoped to loose-compressed storage holes. I also verified that zero `tensor.pad` over a loose-compressed tensor currently reaches the existing `!inPadZone` assertion in `LooseCompressedLevel::peekRangeAt`. I plan to handle that separately. Please let me know if you had a different external-padding case in mind.

https://github.com/llvm/llvm-project/pull/224167


More information about the Mlir-commits mailing list