[all-commits] [llvm/llvm-project] 346b9d: [mlir][Linalg] Canonicalize TensorCastOp away when...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Mon Oct 5 07:50:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 346b9d17720a0ccd920cd02b81811a4d2ddc67d6
      https://github.com/llvm/llvm-project/commit/346b9d17720a0ccd920cd02b81811a4d2ddc67d6
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/Dialect/Linalg/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Linalg] Canonicalize TensorCastOp away when it feeds a LinalgOp.

This canonicalization is the counterpart of MemRefCastOp -> LinalgOp but on tensors.

This is needed to properly canonicalize post linalg tiling on tensors.

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




More information about the All-commits mailing list