[all-commits] [llvm/llvm-project] 9739ef: [MLIR][Tosa] Turn reshape(const()) from canonicali...
Liam Fitzpatrick via All-commits
all-commits at lists.llvm.org
Thu Jul 6 11:07:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9739ef67a8f79ed88d4e28710c6d5c67d5566425
https://github.com/llvm/llvm-project/commit/9739ef67a8f79ed88d4e28710c6d5c67d5566425
Author: Liam Fitzpatrick <liam.fitzpatrick at amd.com>
Date: 2023-07-06 (Thu, 06 Jul 2023)
Changed paths:
M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
Log Message:
-----------
[MLIR][Tosa] Turn reshape(const()) from canonicalization into fold; fix dynamic shape case
1) Turns the canonicalization into a fold, so it can cleanup IR within other passes.
2) When the output of the reshape is a dynamic shaped tensor,
we cannot apply the fold to the constant, because constants are required to have
static shape.
Differential Revision: https://reviews.llvm.org/D154615
More information about the All-commits
mailing list