[all-commits] [llvm/llvm-project] 9b16d9: [mlir][linalg] Add a new pattern to handle folding...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Mon Nov 28 14:15:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b16d9d27138433ab180241352b3b93200ac7d6c
      https://github.com/llvm/llvm-project/commit/9b16d9d27138433ab180241352b3b93200ac7d6c
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
    M mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][linalg] Add a new pattern to handle folding unit reduction dims.

The output operands will be added to input operands if the generic op (on tensors)
becomes an elementwise operation. The outputs of the generic op is still the same.
They will be cleaned up by ReplaceWithEmptyTensorIfUnused pattern.

This is https://reviews.llvm.org/D138251, plus a cmake dep fix.

Reviewed By: mravishankar

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




More information about the All-commits mailing list