[all-commits] [llvm/llvm-project] 2472c4: [mlir][tensor] Enhance pack/unpack simplification ...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Wed Jan 10 08:30:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2472c45ba38828ee084360d52705955ff763e5b0
      https://github.com/llvm/llvm-project/commit/2472c45ba38828ee084360d52705955ff763e5b0
  Author: Han-Chung Wang <hanhan0912 at gmail.com>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Utils/IndexingUtils.h
    M mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
    M mlir/lib/Dialect/Tensor/Transforms/PackAndUnpackPatterns.cpp
    M mlir/lib/Dialect/Utils/IndexingUtils.cpp
    M mlir/test/Dialect/Tensor/simplify-pack-unpack.mlir

  Log Message:
  -----------
  [mlir][tensor] Enhance pack/unpack simplification for identity outer_dims_perm cases. (#77409)

They can be simplified to reshape ops if outer_dims_perm is an identity
permutation. The revision adds a `isIdentityPermutation` method to
IndexingUtils.




More information about the All-commits mailing list