diff options
author | Aart Bik <ajcbik@google.com> | 2024-03-15 16:43:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 16:43:09 -0700 |
commit | f3a8af07fa9e9dbc3bfa495b34846e3a5962cc27 (patch) | |
tree | 962dbb10572da1b1e59a80cc94f8d40a757a6a81 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 43fc921795bd130a325c013d60f209b5c6128fc7 (diff) | |
download | llvm-f3a8af07fa9e9dbc3bfa495b34846e3a5962cc27.zip llvm-f3a8af07fa9e9dbc3bfa495b34846e3a5962cc27.tar.gz llvm-f3a8af07fa9e9dbc3bfa495b34846e3a5962cc27.tar.bz2 |
[mlir][sparse] best effort finalization of escaping empty sparse tensors (#85482)
This change lifts the restriction that purely allocated empty sparse
tensors cannot escape the method. Instead it makes a best effort to add
a finalizing operation before the escape.
This assumes that
(1) we never build sparse tensors across method boundaries
(e.g. allocate in one, insert in other method)
(2) if we have other uses of the empty allocation in the
same method, we assume that either that op will fail
or will do the finalization for us.
This is best-effort, but fixes some very obvious missing cases.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions