diff options
| author | Matthias Springer <me@m-sp.org> | 2023-07-03 09:15:22 +0200 |
|---|---|---|
| committer | Matthias Springer <me@m-sp.org> | 2023-07-03 09:17:48 +0200 |
| commit | 180f9ef8b79bc4ef9aec89e7648a2d5f45100264 (patch) | |
| tree | a9e821625ca0eba70575f7c0adcdc355be3b5a77 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
| parent | 030b18fe148b4e49de66574b08efbc2f95dcf242 (diff) | |
| download | llvm-180f9ef8b79bc4ef9aec89e7648a2d5f45100264.zip llvm-180f9ef8b79bc4ef9aec89e7648a2d5f45100264.tar.gz llvm-180f9ef8b79bc4ef9aec89e7648a2d5f45100264.tar.bz2 | |
[mlir][linalg] LinalgOp-anchored empty tensor elimination
This revision adds a pre-bufferization transform that can reduce the number of allocation. It is similar to `bufferization.eliminate_empty_tensors`, but specific to LinalgOp.
The transform looks for `tensor.empty` ops where the SSA use-def chain ends in an "ins" operand of a `LinalgOp`. If the same `LinalgOp` has an unused "outs" operand (and some other conditions are met), this "outs" operand can be used instead of the `tensor.empty` and the "ins" operand can be turned into an "outs" operand.
Differential Revision: https://reviews.llvm.org/D153952
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions
