[all-commits] [llvm/llvm-project] 534638: [mlir][linalg] Fix crash in canonicalization pattern

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Nov 2 06:11:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 534638eae31a51eca76de8b829b81e6c1fee083b
      https://github.com/llvm/llvm-project/commit/534638eae31a51eca76de8b829b81e6c1fee083b
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

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

  Log Message:
  -----------
  [mlir][linalg] Fix crash in canonicalization pattern

This crash was due to incorrect usage of `hasTensorSemantics`, which has changed recently with DestinationStyleOpInterface. An op has tensor semantics if all of its inits and inputs are tensors. Previously, only inits needed to be tensors.

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




More information about the All-commits mailing list