[all-commits] [llvm/llvm-project] e325eb: [mlir][tosa] Add some transpose folders

Lei Zhang via All-commits all-commits at lists.llvm.org
Fri Sep 24 12:25:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e325ebb9c70bbdd48866926a42d4c4373b832035
      https://github.com/llvm/llvm-project/commit/e325ebb9c70bbdd48866926a42d4c4373b832035
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2021-09-24 (Fri, 24 Sep 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/test/Dialect/Tosa/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tosa] Add some transpose folders

* If the input is a constant splat value, we just
  need to reshape it.
* If the input is a general constant with one user,
  we can also constant fold it, without bloating
  the IR.

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D110439




More information about the All-commits mailing list