[flang-commits] [flang] [Flang][OpenMP] Add semantic support for Loop Sequences and OpenMP loop fuse (PR #161213)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Oct 28 10:13:25 PDT 2025


================
@@ -2254,85 +2258,86 @@ void OmpAttributeVisitor::CheckPerfectNestAndRectangularLoop(
   // Find the associated region by skipping nested loop-associated constructs
   // such as loop transformations
   const parser::NestedConstruct *innermostAssocRegion{nullptr};
-  const parser::OpenMPLoopConstruct *innermostConstruct{&x};
-  while (const auto &innerAssocStmt{
-      std::get<std::optional<parser::NestedConstruct>>(
-          innermostConstruct->t)}) {
-    innermostAssocRegion = &(innerAssocStmt.value());
+  const parser::OpenMPLoopConstruct *innermostConstruct = &x;
----------------
kparzysz wrote:

Please use brace-initialization in Semantics/\*.  That's the convention in this part of flang sources (here and in Parser/\*).

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


More information about the flang-commits mailing list