[llvm-branch-commits] [flang] [flang] Let a directive keep the loop it owns when its body branches (PR #227707)

Kareem Ergawy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 30 11:58:51 PDT 2026


================
@@ -3027,11 +3048,19 @@ static void detectStructuredWithUnstructuredInternals(
             visit(*e.evaluationList);
 
           if (e.isA<parser::DoConstruct>() &&
-              isStructurableWithUnstructuredInternals(e, unit))
+              isStructurableWithUnstructuredInternals(e, unit)) {
             // The one place the classification weakens: detection has proven
----------------
ergawy wrote:

Done in 9657429183e095c06606fab2bbfb771fe847afbf.

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


More information about the llvm-branch-commits mailing list