[all-commits] [llvm/llvm-project] 722ae1: [mlir][Linalg] Add canonicalization to remove no-o...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Jan 14 15:04:27 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 722ae10907e06a0bafa00c557e5242b53419a3ce
      https://github.com/llvm/llvm-project/commit/722ae10907e06a0bafa00c557e5242b53419a3ce
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2021-01-14 (Thu, 14 Jan 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add canonicalization to remove no-op linalg operations.

linalg.generic/indexed_generic operations on tensors whose body is
just yielding the (non-induction variable) arguments of the operation
can be canonicalized by replacing uses of the result with the
corresponding arguments.

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




More information about the All-commits mailing list