[all-commits] [llvm/llvm-project] 37b520: [mlir][Linalg] Handle null affine map returns from...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Tue Apr 14 14:41:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 37b520763fd9a51c94c446108907f48d04b7cab1
      https://github.com/llvm/llvm-project/commit/37b520763fd9a51c94c446108907f48d04b7cab1
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-04-14 (Tue, 14 Apr 2020)

  Changed paths:
    M mlir/include/mlir/IR/AffineMap.h
    M mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
    M mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp
    M mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
    M mlir/test/Dialect/Linalg/fusion-tensor.mlir

  Log Message:
  -----------
  [mlir][Linalg] Handle null affine map returns from inversePermutation.

The inversePermutation method returns a null map on failure. Update
uses of this method within Linalg to handle this. In LinalgToLoops the
null return value was used to emit scalar code. Modify that to return
failure, and emit scalar implementation when affine map is "empty",
i.e. 1 dims, 0 symbols and no result exprs.

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




More information about the All-commits mailing list