[all-commits] [llvm/llvm-project] 35dab9: [linalg] When removing noop linalg.generics, check...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Mar 29 14:06:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35dab904c09b58f061c303b40b394c909ba84db6
      https://github.com/llvm/llvm-project/commit/35dab904c09b58f061c303b40b394c909ba84db6
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

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

  Log Message:
  -----------
  [linalg] When removing noop linalg.generics, check that inserting a cast is valid

linalg.generic can also take scalars instead of tensors, which
tensor.cast doesn't support. We don't have an easy way to cast between
scalars and tensors so just keep the linalg.generic in those cases.

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




More information about the All-commits mailing list