diff options
author | Shraiysh Vaishay <Shraiysh.Vaishay@amd.com> | 2022-06-20 19:40:44 +0530 |
---|---|---|
committer | Shraiysh Vaishay <Shraiysh.Vaishay@amd.com> | 2022-06-21 10:06:05 +0530 |
commit | c858f4dbd5d06b227ff87bbe5ebd787d04148749 (patch) | |
tree | b8c8f864399373e538b827fd4cefa8692d43c268 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 34362f96d2c0bedc20e224f6d1ca4f0b9f66380c (diff) | |
download | llvm-c858f4dbd5d06b227ff87bbe5ebd787d04148749.zip llvm-c858f4dbd5d06b227ff87bbe5ebd787d04148749.tar.gz llvm-c858f4dbd5d06b227ff87bbe5ebd787d04148749.tar.bz2 |
[flang][OpenMP] Fix firstprivate with barrier
This patch fixes the unintentional data race in firstprivate
implementation. There is a Read-Write race when one thread tries
to copy the value inside the omp.parallel region while other
thread modifies it from inside the region (using pointers or
some other form of indirect access).
For detailed discussion please refer to [[ https://discourse.llvm.org/t/issues-with-the-current-implementation-of-privatization-in-openmp-with-fortran/62335 | discourse ]].
Reviewed By: kiranchandramohan, peixin, NimishMishra
Differential Revision: https://reviews.llvm.org/D125689
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions