This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] fix conversion bug when changing pointer/index sizes
ClosedPublic

Authored by aartbik on Oct 28 2021, 4:17 PM.

Diff Detail

Event Timeline

aartbik created this revision.Oct 28 2021, 4:17 PM
aartbik requested review of this revision.Oct 28 2021, 4:17 PM
wrengr accepted this revision.Oct 28 2021, 4:34 PM

LGTM.

This revision is now accepted and ready to land.Oct 28 2021, 4:34 PM
wrengr added inline comments.Oct 28 2021, 4:41 PM
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
593–596

(The lgtm notwithstanding), If we're so concerned to share the contents of params, then at this point I think newParams() should be refactored into smaller chunks so that we can share/hide all this boilerplate (and avoid the inevitable magic numbers issues re the indices into params)

aartbik marked an inline comment as done.Oct 28 2021, 4:48 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
593–596

I agree! This fixes a subtle bug for the world, but I also was thinking of exactly this. A nice follow up refactoring perhaps? ;-)

aartbik updated this revision to Diff 383202.Oct 28 2021, 4:48 PM
aartbik marked an inline comment as done.

rebased with main