[llvm-branch-commits] [flang] [flang] Lower omp.workshare to other omp constructs (PR #101446)

Tom Eccles via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 4 03:46:29 PDT 2024


================
@@ -96,6 +94,12 @@ bool shouldUseWorkshareLowering(Operation *op) {
   if (isNestedIn<omp::SingleOp>(parentWorkshare, op))
     return false;
 
+  if (parentWorkshare.getRegion().getBlocks().size() != 1) {
+    parentWorkshare->emitWarning(
+        "omp workshare with unstructured control flow currently unsupported.");
----------------
tblah wrote:

nit
```suggestion
        "omp workshare with unstructured control flow is currently unsupported.");
```

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


More information about the llvm-branch-commits mailing list