[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 10:18:38 PDT 2024


================
@@ -3044,6 +3046,9 @@ void CodeGenFunction::EmitOMPForOuterLoop(
   OuterLoopArgs.DKind = LoopArgs.DKind;
   EmitOMPOuterLoop(DynamicOrOrdered, IsMonotonic, S, LoopScope, OuterLoopArgs,
                    emitOMPLoopBodyWithStopPoint, CodeGenOrdered);
+  if (DynamicOrOrdered) {
----------------
jdoerfert wrote:

What has ordered to do with the dispatch (de)init?
We need DST for schedule dynamic, regardless of ordered, no?

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


More information about the llvm-commits mailing list