[Mlir-commits] [mlir] [mlir][interface] Add getRegionNonForwardedValues API to RegionBranchOpInterface (PR #175212)

Matthias Springer llvmlistbot at llvm.org
Fri Jan 23 03:32:31 PST 2026


================
@@ -443,6 +442,31 @@ RegionBranchOpInterface::getSuccessorOperands(RegionBranchPoint src,
   return src.getTerminatorPredecessorOrNull().getSuccessorOperands(dest);
 }
 
+SmallVector<Value>
+RegionBranchOpInterface::getRegionNonForwardedValues(RegionBranchPoint src,
+                                                     RegionSuccessor dest) {
+  SmallVector<Value> nonForwardValues;
+  OperandRange successorOperands = getSuccessorOperands(src, dest);
----------------
matthias-springer wrote:

`successorOperands` are not needed. You only query the number of successor operands. But the number of successor operands must match the number of successor inputs by definition.

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


More information about the Mlir-commits mailing list