[all-commits] [llvm/llvm-project] 3bcaf2: [mlir][tosa] Moves constant folding operations out...
Georgios Pinitas via All-commits
all-commits at lists.llvm.org
Mon Jun 6 15:43:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3bcaf2eb9337f1832fa45a095aa2e8862dcb84cd
https://github.com/llvm/llvm-project/commit/3bcaf2eb9337f1832fa45a095aa2e8862dcb84cd
Author: Georgios Pinitas <georgios.pinitas at arm.com>
Date: 2022-06-06 (Mon, 06 Jun 2022)
Changed paths:
M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
M mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h
M mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
M mlir/lib/Dialect/Tosa/Transforms/CMakeLists.txt
M mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp
M mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeDepthwise.cpp
M mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
A mlir/lib/Dialect/Tosa/Transforms/TosaFoldConstantTranspose.cpp
M mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
A mlir/lib/Dialect/Tosa/Transforms/TosaLayerwiseConstantFoldPass.cpp
M mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
A mlir/test/Dialect/Tosa/constant-op-fold.mlir
Log Message:
-----------
[mlir][tosa] Moves constant folding operations out of the Canonicalizer
Transpose operations on constant data were getting folded during the
canonicalization process. This has compile time cost proportional to
the constant size. Moving this to a separate pass to enable optionality
and flexibility of how such scenarios can be handled.
Reviewed By: rsuderman, jpienaar, stellaraccident
Differential Revision: https://reviews.llvm.org/D124685
More information about the All-commits
mailing list