[all-commits] [llvm/llvm-project] 884a62: [mlir][linalg] Add scalar operands inlining pattern

Stephan Herhut via All-commits all-commits at lists.llvm.org
Fri May 21 06:25:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 884a6291f0b995579d2cd203bfdc5b6aa427be31
      https://github.com/llvm/llvm-project/commit/884a6291f0b995579d2cd203bfdc5b6aa427be31
  Author: Stephan Herhut <herhut at google.com>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Passes.h
    M mlir/include/mlir/Dialect/Linalg/Passes.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/include/mlir/IR/AffineMap.h
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Linalg/Transforms/InlineScalarOperands.cpp
    M mlir/lib/IR/AffineMap.cpp
    A mlir/test/Dialect/Linalg/inline-scalar-operands.mlir

  Log Message:
  -----------
  [mlir][linalg] Add scalar operands inlining pattern

This pattern inlines operands to a linalg.generic operation that use a constant
index and hence are loop-invariant scalars. This reduces the number of
linalg.generic operands and unlocks some canonicalizations that rely on seeing
an explicit tensor.extract.

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




More information about the All-commits mailing list