[all-commits] [llvm/llvm-project] 584785: [flang][OpenMP] Detect DSA conflicts in nested loo...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Mon May 4 15:29:50 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5847857b5083e089ffaf62d7634b9e15ab425090
https://github.com/llvm/llvm-project/commit/5847857b5083e089ffaf62d7634b9e15ab425090
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2026-05-04 (Mon, 04 May 2026)
Changed paths:
M flang/lib/Semantics/check-omp-loop.cpp
M flang/test/Semantics/OpenMP/do01.f90
Log Message:
-----------
[flang][OpenMP] Detect DSA conflicts in nested loop constructs (#195323)
Follow-up to https://github.com/llvm/llvm-project/pull/194961
The fix from PR194961 did not detect explicit/predefined DSA conflicts
on an iteration variable in a nested loop construct. For example, in a
testcase inspired by Fujitsu 0165_0035.f90:
```
!$omp parallel do private(i) shared(j)
do i=1,1
do j=1,1
!$omp parallel do default(none) shared(k)
do k=1,1
end do
!$omp end parallel do
end do
end do
```
the "shared(k)" was not flagged as incorrect.
Adjust the fix to traverse the host-association chain until the symbol
from the DSA clause is found.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list