[all-commits] [llvm/llvm-project] 813bff: [mlir][VectorOps] Adds canonicalization rewrite pa...

andydavis1 via All-commits all-commits at lists.llvm.org
Tue Feb 11 13:11:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 813bfffec34b87d32c9c834718f660afb5275bc8
      https://github.com/llvm/llvm-project/commit/813bfffec34b87d32c9c834718f660afb5275bc8
  Author: Andy Davis <andydavis at google.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M mlir/lib/Dialect/VectorOps/VectorTransforms.cpp
    M mlir/test/Dialect/VectorOps/vector-transforms.mlir

  Log Message:
  -----------
  [mlir][VectorOps] Adds canonicalization rewrite patterns for vector ShapeCastOp.

Summary:
Adds two rewrite patterns for the vector ShapeCastOp.
*) ShapeCastOp decomposer: decomposes ShapeCastOp on tuple-of-vectors to multiple ShapeCastOps each on vector types.
*) ShapeCastOp folder: folds canceling shape cast ops (e.g. shape_cast A -> B followed by shape_cast B -> A) away.

Reviewers: nicolasvasilache, aartbik

Reviewed By: nicolasvasilache

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list