[all-commits] [llvm/llvm-project] 723979: Move tosa.reshape lowering patterns from TosaToLin...
Krzysztof Drewniak via All-commits
all-commits at lists.llvm.org
Tue Mar 7 08:06:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 723979efc8638d192a680d2a0f814f758274a046
https://github.com/llvm/llvm-project/commit/723979efc8638d192a680d2a0f814f758274a046
Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
M mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
M mlir/test/Conversion/TosaToTensor/tosa-to-tensor.mlir
Log Message:
-----------
Move tosa.reshape lowering patterns from TosaToLinalg to TosaToTensor
Converting tosa.reshape to tensor.expand_shape and
tensor.collapse_shape logically belongs in the tosa-to-tensor
conversion process. In addition, we (rocMLIR downstream) want to use
the reshape -> expand/collapse_shape logic to simplify parts of our
Tosa integration without using the full tosa-to-linalg flow, further
motivating moving these patterns.
The downside to this change is that it means you need to run
tosa-to-tensor after tosa-to-linalg, which is probably a breaking
change.
Reviewed By: rsuderman
Differential Revision: https://reviews.llvm.org/D145119
More information about the All-commits
mailing list