[Mlir-commits] [mlir] [mlir] Fix false positive loops in RegionBranchOpInterface::hasLoop (PR #233784)

Mehdi Amini llvmlistbot at llvm.org
Wed Oct 21 00:03:34 PDT 2026


================
@@ -284,3 +316,53 @@ TEST(RegionBranchOpInterface, NotRecursiveRegions) {
   EXPECT_EQ(getEnclosingRepetitiveRegion(op1), nullptr);
   EXPECT_EQ(getEnclosingRepetitiveRegion(op2), nullptr);
 }
+
+TEST(RegionBranchOpInterface, MultipleExitsToSameRegionIsNotALoop) {
----------------
joker-eph wrote:

```suggestion
TEST(RegionBranchOpInterface, MultipleBranchesToSameRegionIsNotALoop) {
```

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


More information about the Mlir-commits mailing list