[all-commits] [llvm/llvm-project] 8e10a3: [flang][OpenMP] don't privatise loop index marked ...
Mats Petersson via All-commits
all-commits at lists.llvm.org
Fri Sep 13 04:57:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e10a3f80e264aaa186ab3cc74fea840f453c66d
https://github.com/llvm/llvm-project/commit/8e10a3f80e264aaa186ab3cc74fea840f453c66d
Author: Mats Petersson <mats.petersson at arm.com>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
M flang/lib/Lower/Bridge.cpp
M flang/lib/Semantics/resolve-directives.cpp
A flang/test/Lower/OpenMP/shared-loop.f90
M flang/test/Semantics/OpenMP/do20.f90
M flang/test/Semantics/OpenMP/implicit-dsa.f90
M flang/test/Semantics/OpenMP/symbol01.f90
M flang/test/Semantics/OpenMP/symbol02.f90
M flang/test/Semantics/OpenMP/symbol03.f90
M flang/test/Semantics/OpenMP/symbol07.f90
M flang/test/Semantics/OpenMP/symbol09.f90
Log Message:
-----------
[flang][OpenMP] don't privatise loop index marked shared (#108176)
Mark the symbol with OmpShared, and then check that later in lowering to
avoid making a local loop index.
OpenMP 5.2 says: "Loop iteration variables of loops that are not associated
with any OpenMP directive maybe listed in data-sharing attribute clauses on
the surrounding teams, parallel or taskgenerating construct, and on enclosed
constructs, subject to other restrictions."
Tests updated to match the extra OmpShared attribute.
Add regression test for lowering to hlfir.
Closes #102961
---------
Co-authored-by: Tom Eccles <tom.eccles at arm.com>
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