[all-commits] [llvm/llvm-project] ed4d12: [mlir][Shape] Fix a crash when folding nary broadc...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Mon Feb 22 11:07:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed4d12c2ce30e5a1c270e2b4a08e67851ff8b295
      https://github.com/llvm/llvm-project/commit/ed4d12c2ce30e5a1c270e2b4a08e67851ff8b295
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M mlir/lib/Dialect/Shape/IR/Shape.cpp

  Log Message:
  -----------
  [mlir][Shape] Fix a crash when folding nary broadcast ops

operands[2] can be nullptr here. I'm not able to build a lit test for
this because of the commutative reordering of operands. It's possible to
trigger this with a createOrFold<BroadcastOp> though.

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




More information about the All-commits mailing list