[all-commits] [llvm/llvm-project] 06dbb2: [mlir][vector] Remove usage of shapecast to remove...

Thomas via All-commits all-commits at lists.llvm.org
Fri Nov 19 10:25:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06dbb2856967a5497c6ddfad3d3fdfea20849f7e
      https://github.com/llvm/llvm-project/commit/06dbb2856967a5497c6ddfad3d3fdfea20849f7e
  Author: Thomas Raoux <thomasraoux at google.com>
  Date:   2021-11-19 (Fri, 19 Nov 2021)

  Changed paths:
    M mlir/lib/Dialect/Vector/VectorOps.cpp
    M mlir/lib/Dialect/Vector/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir
    R mlir/test/Dialect/Vector/vector-dim-one-shape-cast.mlir
    M mlir/test/Dialect/Vector/vector-transforms.mlir

  Log Message:
  -----------
  [mlir][vector] Remove usage of shapecast to remove unit dim

Instead of using shape_cast op in the pattern removing leading unit
dimensions we use extract/broadcast ops. This is part of the effort to
restrict ShapeCastOp fuirther in the future and only allow them to
convert to or from 1D vector.

This also adds extra canonicalization to fill the gaps in simplifying
broadcast/extract ops.

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




More information about the All-commits mailing list