[flang-commits] [flang] [llvm] [clang-tools-extra] [compiler-rt] [clang] [Flang][OpenMP] Push genEval closer to leaf lowering functions (PR #77760)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Jan 15 10:08:45 PST 2024


================
@@ -112,7 +112,8 @@ static void gatherFuncAndVarSyms(
 
 static Fortran::lower::pft::Evaluation *
 getCollapsedLoopEval(Fortran::lower::pft::Evaluation &eval, int collapseValue) {
-  // Return the Evaluation of the innermost collapsed loop.
+  // Return the Evaluation of the innermost collapsed loop, or the current one
+  // if there was no COLLAPSE.
   if (collapseValue == 0)
----------------
kparzysz wrote:

I actually missed this change in the previous commit, but turns out that it's actually useful in this PR, since this function is called separately in a couple of places.

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


More information about the flang-commits mailing list