[all-commits] [llvm/llvm-project] b975e3: [MLIR] Add canoncalization for `shape.is_broadcast...

frgossen via All-commits all-commits at lists.llvm.org
Thu Mar 11 01:11:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b975e3b5aa8c6c8b608302997a3bf0fda06bf8d8
      https://github.com/llvm/llvm-project/commit/b975e3b5aa8c6c8b608302997a3bf0fda06bf8d8
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
    M mlir/lib/Dialect/Shape/IR/Shape.cpp
    M mlir/test/Dialect/Shape/canonicalize.mlir

  Log Message:
  -----------
  [MLIR] Add canoncalization for `shape.is_broadcastable`

Canonicalize `is_broadcastable` to constant true if fewer than 2 unique shape
operands. Eliminate redundant operands, otherwise.

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




More information about the All-commits mailing list