[Openmp-commits] [clang] [llvm] [openmp] [Clang][OpenMP] Add `#pragma omp flatten` loop directive + `depth` clause (PR #206977)

Alexey Bataev via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 20 10:50:22 PDT 2026


alexey-bataev wrote:

Will it handle this test:
```
#pragma omp flatten
for (int i = 0; i < -1; ++i)   // also: runtime n,m both negative
  for (int j = 0; j < -1; ++j)
    body(i, j);                // must execute 0 times; flatten executes it once
```
?

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


More information about the Openmp-commits mailing list