diff options
author | Spenser Bauman <sbauman@mathworks.com> | 2023-11-22 07:41:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 12:41:33 +0000 |
commit | eed17dcf76b5aea30348a515e9fddd0789fec054 (patch) | |
tree | 5a8b1f5fefbba27f128ae84390e343e2c5f3141a /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 9b20af165138f94ea9ca67d2a04df657d870aa88 (diff) | |
download | llvm-eed17dcf76b5aea30348a515e9fddd0789fec054.zip llvm-eed17dcf76b5aea30348a515e9fddd0789fec054.tar.gz llvm-eed17dcf76b5aea30348a515e9fddd0789fec054.tar.bz2 |
[mlir][tosa] Fix lowering of tosa.matmul with dynamic outputs (#72724)
The existing lowering of tosa.matmul will construct illegal tensor.empty
operations when the output type is more dynamic than the input types.
%0 = tosa.matmul %arg0, %arg1 : (tensor<1x1x8xf32>, tensor<1x8x1xf32>)
-> tensor<?x1x1xf32>
When constructing the tensor.empty operation, consult the output type
rather than the input types to decide whether a dimension is dynamic.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions