[all-commits] [llvm/llvm-project] e7328a: [mlir][linalg] Fold duplicate and unused inputs in...

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Dec 9 06:22:10 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7328a9eb22307d80f86f668a75c2b082ee8636e
      https://github.com/llvm/llvm-project/commit/e7328a9eb22307d80f86f668a75c2b082ee8636e
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/Transforms/EraseUnusedOperandsAndResults.cpp
    M mlir/test/Dialect/Linalg/erase-unused-operands-and-results.mlir
    M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp

  Log Message:
  -----------
  [mlir][linalg] Fold duplicate and unused inputs in linalg.generic

If an input bbArg is not used, its corresponding input operand is removed. If there are duplicate input operands or input operands that are also used as output operands, the duplicate input operands are removed. Output operands are never modified.

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




More information about the All-commits mailing list