[all-commits] [llvm/llvm-project] 9a5092: [MLIR][Tensor] Add canonicalization patterns for `...

lorenzo chelini via All-commits all-commits at lists.llvm.org
Wed Jan 11 23:46:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a5092b358ce52dd7c7dc8927529dac22523b6a2
      https://github.com/llvm/llvm-project/commit/9a5092b358ce52dd7c7dc8927529dac22523b6a2
  Author: Lorenzo Chelini <l.chelini at icloud.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/Tensor.h
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir
    A mlir/test/Dialect/Tensor/simplify-tensor-pack.mlir
    M mlir/test/lib/Dialect/Tensor/TestTensorTransforms.cpp

  Log Message:
  -----------
  [MLIR][Tensor] Add canonicalization patterns for `tensor.pack`

- Fold an unpack(pack(x)) to x.

- Rewrite a `tensor.pack` to an `tensor.expand_shape` if only one
  dimension is packed.

Reviewed By: tyb0807, hanchung, mravishankar

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




More information about the All-commits mailing list