[flang-commits] [flang] [flang][OpenMP] Lower REDUCTION clause for SECTIONS (PR #97858)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Jul 8 09:31:06 PDT 2024


================
@@ -2049,10 +2085,11 @@ static void genOMPDispatch(lower::AbstractConverter &converter,
     genParallelOp(converter, symTable, semaCtx, eval, loc, queue, item);
     break;
   case llvm::omp::Directive::OMPD_section:
-    genSectionOp(converter, symTable, semaCtx, eval, loc, queue, item);
+    // Lowered in the enclosing genSectionsOp.
----------------
tblah wrote:

In the sections case the code is actually reachable and needs to do nothing. I added a comment there to explain that.

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


More information about the flang-commits mailing list