[all-commits] [llvm/llvm-project] 7bca97: [MLIR][Shape] Add canonicalization pattern for `sh...

frgossen via All-commits all-commits at lists.llvm.org
Thu Jun 25 01:40:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bca97d960ab9451185a997208057a89355b406a
      https://github.com/llvm/llvm-project/commit/7bca97d960ab9451185a997208057a89355b406a
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2020-06-25 (Thu, 25 Jun 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
    M mlir/lib/Dialect/Shape/IR/Shape.cpp
    M mlir/test/Dialect/Shape/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][Shape] Add canonicalization pattern for `shape.rank`

Replace any `rank(shape_of(tensor))` that relies on a ranked tensor with the
corresponding constant `const_size`.

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




More information about the All-commits mailing list