[all-commits] [llvm/llvm-project] 030b18: [mlir][vector] Clean up some dimension size checks

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Jul 3 00:14:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 030b18fe148b4e49de66574b08efbc2f95dcf242
      https://github.com/llvm/llvm-project/commit/030b18fe148b4e49de66574b08efbc2f95dcf242
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorTransferSplitRewritePatterns.cpp

  Log Message:
  -----------
  [mlir][vector] Clean up some dimension size checks

* Add `memref::getMixedSize` (same as in the tensor dialect).
* Simplify in-bounds check in `VectorTransferSplitRewritePatterns.cpp` and fix off-by-one error in the static in-bounds check.
* Use "memref::DimOp" instead of `createOrFoldDimOp` when possible.

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




More information about the All-commits mailing list