This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] avoid unnecessary tmp COO buffer and convert when lowering ConcatentateOp.
ClosedPublic

Authored by Peiming on Dec 16 2022, 10:14 AM.

Details

Summary

When concat along dim 0, and all inputs/outputs are ordered with identity dimension ordering,
the concatenated coordinates will be yield in lexOrder, thus no need to sort.

Diff Detail

Event Timeline

Peiming created this revision.Dec 16 2022, 10:14 AM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Dec 16 2022, 10:14 AM
Peiming edited the summary of this revision. (Show Details)
aartbik accepted this revision.Dec 16 2022, 10:19 AM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
532

When we concatenate on...
or
When concatenating on....

all inputs (plural) and have (verb change)

This revision is now accepted and ready to land.Dec 16 2022, 10:19 AM
Peiming updated this revision to Diff 483583.Dec 16 2022, 10:21 AM

address comments.

Peiming marked an inline comment as done.Dec 16 2022, 10:21 AM
This revision was landed with ongoing or failed builds.Dec 16 2022, 10:26 AM
This revision was automatically updated to reflect the committed changes.