================
@@ -12226,6 +12226,14 @@ def err_omp_invalid_looprange
 def warn_omp_redundant_fusion : Warning<"looprange clause selects a single "
                                         "loop, resulting in redundant fusion">,
                                 InGroup<OpenMPClauses>;
+def warn_omp_flatten_omitted_depth : Warning<
+  "'flatten' without a 'depth' clause only combines 2 loops, but 3 or more "
+  "loops are perfectly nested">,
+  InGroup<OpenMPClauses>;
+def note_omp_flatten_insert_depth : Note<
+  "insert 'depth(2)' to flatten only the outermost 2 loops">;
----------------
Meinersbur wrote:

This message suggests that `depth(2)` would change the behaviour, but it only 
silences the warning.

Compare:
```
def note_condition_assign_silence : Note<
  "place parentheses around the assignment to silence this warning">;
```


https://github.com/llvm/llvm-project/pull/206977
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to