[all-commits] [llvm/llvm-project] b40f42: [mlir][MemRef] Add early exit for computing droppe...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Mon Mar 21 14:50:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b40f420c2b64ff902ddf16fba1d9920acad11fbc
      https://github.com/llvm/llvm-project/commit/b40f420c2b64ff902ddf16fba1d9920acad11fbc
  Author: Mahesh Ravishankar <ravishankarm at google.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/test/Dialect/MemRef/canonicalize.mlir
    M mlir/test/Dialect/MemRef/invalid.mlir

  Log Message:
  -----------
  [mlir][MemRef] Add early exit for computing dropped unit-dims.

Computing dropped unit-dims when all the unit dims are dropped, does
not need to check for strides being dropped.
This also enables canonicalization of reduced-rank subviews.

Reviewed By: gysit

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




More information about the All-commits mailing list