[all-commits] [llvm/llvm-project] a99e06: [mlir][Linalg] Avoid generating illegal operations...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Jan 20 23:45:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a99e06aa869b44588a18a423f58e0ab30c292d8e
      https://github.com/llvm/llvm-project/commit/a99e06aa869b44588a18a423f58e0ab30c292d8e
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
    M mlir/test/Dialect/Linalg/fusion-elementwise-ops.mlir

  Log Message:
  -----------
  [mlir][Linalg] Avoid generating illegal operations during elementwise fusion.

In some cases, fusion can produce illegal operations if after fusion
the range of some of the loops cannot be computed from shapes of its
operands. Check for this case and abort the fusion if this happens.

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




More information about the All-commits mailing list