[all-commits] [llvm/llvm-project] 4cd7ff: [mlir][linalg] Constant fold linalg.generic that a...

Lei Zhang via All-commits all-commits at lists.llvm.org
Fri Oct 8 05:12:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cd7ff6728f440234def491be380e5af62f34b83
      https://github.com/llvm/llvm-project/commit/4cd7ff6728f440234def491be380e5af62f34b83
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
    M mlir/test/Dialect/Linalg/fusion-elementwise-ops.mlir

  Log Message:
  -----------
  [mlir][linalg] Constant fold linalg.generic that are transposes

This commit adds a pattern to perform constant folding on linalg
generic ops which are essentially transposes. We see real cases
where model importers may generate such patterns.

Reviewed By: mravishankar

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




More information about the All-commits mailing list