This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Extend the operator new rewriter to handle isSymmetric flag.
ClosedPublic

Authored by bixia on Nov 17 2022, 7:37 AM.

Diff Detail

Event Timeline

bixia created this revision.Nov 17 2022, 7:37 AM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Nov 17 2022, 7:37 AM
bixia updated this revision to Diff 476141.Nov 17 2022, 8:17 AM

Fix a FileCheck test.

aartbik accepted this revision.Nov 17 2022, 10:08 AM
aartbik added inline comments.
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir
30

For the general case, this is unavoidable for now, since we don't know a priori is the matrix is symmetric.
But since this is executed O(noe) time, let's try to also provide a way that keep this innermost loop clean of branching

as discussed offline, in a follow up

This revision is now accepted and ready to land.Nov 17 2022, 10:08 AM