[all-commits] [llvm/llvm-project] c870f2: [mlir] Remove assert from RegionBranchOpInterface ...

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Oct 17 09:23:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c870f2067a3bffbb06a5b549321564b5dfbd5481
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M mlir/lib/Interfaces/ControlFlowInterfaces.cpp

  Log Message:
  [mlir] Remove assert from RegionBranchOpInterface verifier

This assert is erroneous because an op implementing
`RegionBranchOpInterface` can have variadic regions and in some cases
have zero regions, in which case the only possible control flow is
branching from the parent op to itself.

Reviewed By: rriddle, jpienaar

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

More information about the All-commits mailing list