[all-commits] [llvm/llvm-project] 5885c8: [MLIR][Linalg] Fix propagation for rank-zero tensor

lorenzo chelini via All-commits all-commits at lists.llvm.org
Wed Mar 1 00:31:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5885c85fc6a78a65dd9219e1921a307f7c963dd5
      https://github.com/llvm/llvm-project/commit/5885c85fc6a78a65dd9219e1921a307f7c963dd5
  Author: Lorenzo Chelini <l.chelini at icloud.com>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
    M mlir/test/Dialect/Linalg/data-layout-propagation.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Fix propagation for rank-zero tensor

`isScalar` only returns true if the operand is non-shaped.
But we need to handle also rank zero tensors.

Reviewed By: hanchung

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




More information about the All-commits mailing list