Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
If you add "(fixes #61530)" to the title, then when you submit, github will automatically close the ticket and add a comment there linking to the commit
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
441 | This would read more fluently as "If we have an" |
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
446–447 | I think it would be better to update the ctor/initialize so that it makes lvlToLoop have the right size in the first place, rather than doing this workaround. Since this looks like it's actually a problem with confusing srcLvl vs dstLvl. |
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
270 | You should add documentation for what this parameter is for. And should rename the parameter to make clear what sort of "rank" it's the maximum for (srcLvlRank? dstLvlRank? srcDimRank? dstDimRank? other?). Based on the changes to Merger.cpp it looks like it's the maximum srcLvlRank, but based on the code in GenericOpSparsifier it looks instead like it's the maximum dstDimRank. | |
mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.cpp | ||
295–296 | 👍 | |
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp | ||
1822–1823 | Reiterating my comment from before, this code computes the maximum dstDimRank but Merger.cpp looks like it actually wants the maximum srcLvlRank. So there's some confusion that needs to be cleared up here. I'm pretty sure you want the level-rank (regardless of the src-vs-dst issue), so you should use SparseTensorType::getLvlRank here instead. | |
mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp | ||
223 | Just to connect with the previous comments, this code is why I think "maxRank" should actually be "maxLvlRank" (since the lvlToLoop is indexed by (TensorId, Level)) |
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
259 | "storage" |
"storage"