[all-commits] [llvm/llvm-project] 3f89e3: [mlir] add pad_tensor(tensor.cast) -> pad_tensor c...

ftynse via All-commits all-commits at lists.llvm.org
Fri Sep 24 03:04:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f89e339bb185726a2a3eb127ac59c813b52c6fe
      https://github.com/llvm/llvm-project/commit/3f89e339bb185726a2a3eb127ac59c813b52c6fe
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-09-24 (Fri, 24 Sep 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/Tensor.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Linalg/canonicalize.mlir
    M mlir/test/Dialect/Linalg/subtensor-of-padtensor.mlir
    M mlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
    M mlir/test/Dialect/Linalg/tile-pad-tensor-op.mlir

  Log Message:
  -----------
  [mlir] add pad_tensor(tensor.cast) -> pad_tensor canonicalizer

This canonicalization pattern complements the tensor.cast(pad_tensor) one in
propagating constant type information when possible. It contributes to the
feasibility of pad hoisting.

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list