[all-commits] [llvm/llvm-project] 796d48: [mlir][vector] Add leading unit dim folding patter...

Quinn Dawkins via All-commits all-commits at lists.llvm.org
Mon Nov 6 17:40:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 796d48b080a07fca216a17db888759333f8eeb74
      https://github.com/llvm/llvm-project/commit/796d48b080a07fca216a17db888759333f8eeb74
  Author: Quinn Dawkins <quinn.dawkins at gmail.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp
    M mlir/test/Dialect/Vector/vector-dropleadunitdim-transforms.mlir

  Log Message:
  -----------
  [mlir][vector] Add leading unit dim folding patterns for masked transfers (#71466)

This handles `vector.transfer_read`, `vector.transfer_write`, and
`vector.constant_mask`. The unit dims are only relevant for masks
created by `create_mask` and `constant_mask` if the mask size for the
unit dim is non-one, in which case all subsequent sizes must also be
zero. From the perspective of the vector transfers, however, these unit
dims can just be dropped directly.




More information about the All-commits mailing list