[all-commits] [llvm/llvm-project] cb40d5: [mlir][Linalg] Avoid using `tensor.cast` by defaul...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Fri Nov 11 15:17:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb40d5291e6113fddcfa5fc3861b7320f78dbfe8
      https://github.com/llvm/llvm-project/commit/cb40d5291e6113fddcfa5fc3861b7320f78dbfe8
  Author: Mahesh Ravishankar <ravishankarm at google.com>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

  Log Message:
  -----------
  [mlir][Linalg] Avoid using `tensor.cast` by default while folding `fill` with `pad`.

This is unnecessary if the generated operation type already matches
the type of the replaced value.  Also use `OpFoldResult` to reduce the
number of cases the casts are needed.

Reviewed By: springerm, hanchung, antiagainst

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




More information about the All-commits mailing list