This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] start using size_hint provided in allocation op
ClosedPublic

Authored by aartbik on Feb 3 2023, 1:10 PM.

Details

Summary

Even though we introduced the size_hint, we never used it.
This is a very first step, using the hint during the codegen path.
Note that we can refine the heuristics. Also, we need to start
adding the hint on all allocation generated for reading tensors,
converting tensors, etc.

Diff Detail

Event Timeline

aartbik created this revision.Feb 3 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2023, 1:10 PM
aartbik requested review of this revision.Feb 3 2023, 1:10 PM
bixia accepted this revision.Feb 3 2023, 1:45 PM
This revision is now accepted and ready to land.Feb 3 2023, 1:45 PM
Peiming accepted this revision.Feb 3 2023, 1:46 PM