[all-commits] [llvm/llvm-project] 76ea62: [mlir] Fix folding into tensor.pad op.

Alexander Belyaev via All-commits all-commits at lists.llvm.org
Thu Mar 30 02:35:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76ea62a2735a760545bfa98524e7a658a15268ac
      https://github.com/llvm/llvm-project/commit/76ea62a2735a760545bfa98524e7a658a15268ac
  Author: Alexander Belyaev <pifon at google.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir] Fix folding into tensor.pad op.

When low/high padding is folded in padOp, there should be inserted a
tensor.cast back to the original result type. Right now, there is a no-op
tensor.cast from new type to new type...

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




More information about the All-commits mailing list