diff options
author | Rob Suderman <rob.suderman@gmail.com> | 2021-08-10 14:42:56 -0700 |
---|---|---|
committer | Rob Suderman <rob.suderman@gmail.com> | 2021-08-10 14:43:00 -0700 |
commit | 2b2ebb6f988c1c063b7e372c85c2591f69b62bd4 (patch) | |
tree | 371bd9278cd1c52f9c109de40f25dd28a465e386 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 86858c62ba033910076320df3b2ea947026ba1ea (diff) | |
download | llvm-2b2ebb6f988c1c063b7e372c85c2591f69b62bd4.zip llvm-2b2ebb6f988c1c063b7e372c85c2591f69b62bd4.tar.gz llvm-2b2ebb6f988c1c063b7e372c85c2591f69b62bd4.tar.bz2 |
[mlir][tosa] Add folders for trivial tosa operation cases
Some folding cases are trivial to fold away, specifically no-op cases where
an operation's input and output are the same. Canonicalizing these away
removes unneeded operations.
The current version includes tensor cast operations to resolve shape
discreprencies that occur when an operation's result type differs from the
input type. These are resolved during a tosa shape propagation pass.
Reviewed By: NatashaKnk
Differential Revision: https://reviews.llvm.org/D107321
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions