This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] compute allocation size_hint
ClosedPublic

Authored by aartbik on Feb 3 2023, 5:54 PM.

Details

Summary

This adds the hint to a number of tensor allocations in codegens,
shaving off quite some time from e.g. reading in sparse matrices
due to zero-reallocation scheme. Note that we can probably provide
hints on all allocations, and refine the heuristics that use them
for general tensors.

Diff Detail

Event Timeline

aartbik created this revision.Feb 3 2023, 5:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2023, 5:54 PM
aartbik requested review of this revision.Feb 3 2023, 5:54 PM
aartbik updated this revision to Diff 494781.Feb 3 2023, 5:57 PM

removed unrelated edits

bixia accepted this revision.Feb 6 2023, 1:33 PM
This revision is now accepted and ready to land.Feb 6 2023, 1:33 PM
This revision was automatically updated to reflect the committed changes.