[all-commits] [llvm/llvm-project] f566b0: [MLIR] Add pattern to fold insert_slice of extract...

Jerry Wu via All-commits all-commits at lists.llvm.org
Thu Mar 28 08:19:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f566b079f171f28366a66b8afa4a975bc4005529
      https://github.com/llvm/llvm-project/commit/f566b079f171f28366a66b8afa4a975bc4005529
  Author: Jerry Wu <cheyuw at google.com>
  Date:   2024-03-28 (Thu, 28 Mar 2024)

  Changed paths:
    M mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp
    M mlir/lib/Dialect/Tensor/Utils/Utils.cpp
    M mlir/test/Dialect/Tensor/drop-redundant-insert-slice-rank-expansion.mlir

  Log Message:
  -----------
  [MLIR] Add pattern to fold insert_slice of extract_slice (#86328)

Fold the `tensor.insert_slice` of `tensor.extract_slice` into
`tensor_extract_slice` when the `insert_slice` simply expand some unit
dims dropped by the `extract_slice`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list