[all-commits] [llvm/llvm-project] 760ffa: [mlir][tensor] Apply `InsertSliceOfTransferWriteOp...

Rajveer Singh Bharadwaj via All-commits all-commits at lists.llvm.org
Tue Oct 1 14:30:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 760ffa4736357dc31c970abcad833027f5ef36b4
      https://github.com/llvm/llvm-project/commit/760ffa4736357dc31c970abcad833027f5ef36b4
  Author: Rajveer Singh Bharadwaj <rajveer.developer at icloud.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M mlir/lib/Dialect/Tensor/Transforms/FoldTensorSubsetOps.cpp
    M mlir/test/Dialect/Tensor/fold-tensor-subset-ops.mlir

  Log Message:
  -----------
  [mlir][tensor] Apply `InsertSliceOfTransferWriteOpFolder` only when `transfer_write` overwrites all elements of `insert_slice` (#108803)

Resolves #101708

The updated logic now correctly checks if `transfer_write` completely
overwrites `insert_slice` and only then applies the rewrite for this
pattern.

This check currently covers static sizes, for dynamic sizes
value bounds analysis is needed (see `TODO:`).



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