[all-commits] [llvm/llvm-project] fc760c: [mlir][vector] Fold cancelling vector.shape_cast(v...

Lei Zhang via All-commits all-commits at lists.llvm.org
Fri Apr 22 06:02:30 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc760c026058aa347b5aa16b548995e89ffe8d31
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  [mlir][vector] Fold cancelling vector.shape_cast(vector.broadcast)

vector.broadcast can inject all size one dimensions. If it's
followed by a vector.shape_cast to the original type, we can
cancel the op pair, like cancelling consecutive shape_cast ops.

Reviewed By: mravishankar

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

More information about the All-commits mailing list