[Mlir-commits] [llvm] [mlir] [mlir][OpenMP] - Honor dependencies in code-generation of the if clause in `omp.task` correctly (PR #90891)

Michael Kruse llvmlistbot at llvm.org
Mon May 6 01:33:27 PDT 2024


================
@@ -1887,6 +1887,17 @@ OpenMPIRBuilder::createTask(const LocationDescription &Loc,
       SplitBlockAndInsertIfThenElse(IfCondition, IfTerminator, &ThenTI,
                                     &ElseTI);
       Builder.SetInsertPoint(ElseTI);
+
+      if (Dependencies.size()) {
+        Function *TaskWaitFn =
+            getOrCreateRuntimeFunctionPtr(OMPRTL___kmpc_omp_taskwait_deps_51);
----------------
Meinersbur wrote:

Since the `nowait` argument passed is false, wouldn't `__kmpc_omp_wait_deps` be sufficient?

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


More information about the Mlir-commits mailing list