[Mlir-commits] [mlir] [mlir][Interfaces] Document completeness requirement of `RegionBranchOpInterface` (PR #202018)

Mehdi Amini llvmlistbot at llvm.org
Tue Jun 9 02:13:24 PDT 2026


================
@@ -278,6 +301,13 @@ def RegionBranchOpInterface : OpInterface<"RegionBranchOpInterface"> {
     InterfaceMethod<[{
         Returns the potential branching points (predecessors) for a given
         region successor.
+
+        The returned predecessors must include every `RegionBranchPoint` from
+        which control flow could reach `successor`. Omitting a possible
+        predecessor is an incorrect implementation and may cause
+        analyses/transformations to produce incorrect results. It is acceptable
+        to over-approximate by reporting predecessors that turn out to be
+        infeasible at runtime.
----------------
joker-eph wrote:

Ditto.

https://github.com/llvm/llvm-project/pull/202018


More information about the Mlir-commits mailing list