[llvm-branch-commits] [clang] [clang][OpenMP] Extend no-loop promotion to the split teams loop (PR #224650)
Dhruva Chakrabarti via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 17 06:57:01 PST 2026
================
@@ -144,6 +201,28 @@ void non_promotable(int *array, int n) {
#pragma omp target teams distribute parallel for if(n > 0)
for (int i = 0; i < 1024; ++i)
array[i] = i + 1;
+
+#pragma omp target
+ {
+#pragma omp teams loop
----------------
dhruvachak wrote:
Add a negative test case with num_teams, reduction clause on the teams directive.
https://github.com/llvm/llvm-project/pull/224650
More information about the llvm-branch-commits
mailing list