[flang-commits] [flang] [mlir] [mlir][flang][openmp] Rework parallel reduction operations (PR #79308)

David Truby via flang-commits flang-commits at lists.llvm.org
Mon Jan 29 05:45:53 PST 2024


================
@@ -3483,10 +3514,8 @@ genOMP(Fortran::lower::AbstractConverter &converter,
     break;
   }
 
-  if (singleDirective) {
-    genOpenMPReduction(converter, beginClauseList);
+  if (singleDirective)
----------------
DavidTruby wrote:

`singleDirective=true` doesn't appear to mean the `single` directive is the one being processed, but rather that _a single_ directive is being processed as opposed to a nested one. The variable name is quite unclear!

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


More information about the flang-commits mailing list