This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Only try to compute a better iteraton graph when needed
ClosedPublic

Authored by Peiming on Sep 16 2022, 11:22 AM.

Diff Detail

Event Timeline

Peiming created this revision.Sep 16 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Sep 16 2022, 11:22 AM
Peiming added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
362

Or should I return an enum? it might look awkward (but type converter used the same thing for Optional<LogicalResult>)

Peiming updated this revision to Diff 460832.Sep 16 2022, 11:26 AM

add missing period...

Peiming updated this revision to Diff 460833.Sep 16 2022, 11:27 AM

more missing periods..

Peiming updated this revision to Diff 460839.Sep 16 2022, 11:56 AM

only resolve cycle when there is one

aartbik added inline comments.Sep 16 2022, 3:32 PM
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
362

I would be okay with this solution, since it is used elsewhere too (like your codegen type converter :-), but it seems the hasCycle is all we need

1860

This part is good!

Peiming updated this revision to Diff 460931.Sep 16 2022, 3:42 PM

remove obscue code.

Peiming marked an inline comment as done.Sep 16 2022, 3:42 PM
aartbik accepted this revision.Sep 16 2022, 3:52 PM

Good work, thanks Peiming!

This revision is now accepted and ready to land.Sep 16 2022, 3:52 PM
This revision was landed with ongoing or failed builds.Sep 16 2022, 3:53 PM
This revision was automatically updated to reflect the committed changes.