[flang-commits] [flang] [llvm] [OpenMP][Flang] Fix atomic operations on complex types (PR #165366)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Oct 28 07:11:16 PDT 2025
kparzysz wrote:
In the actual commit, please only put a summary of the PR, for example
> In OMPIRBuilder::createAtomicRead() and createAtomicWrite(), the size parameter for __atomic_load/__atomic_store was incorrectly computed from the pointer type instead of the pointee (element) type.
>
> On 64-bit systems, this resulted in only 8 bytes being transferred regardless of the actual struct size.
>
> Changed both functions to use XElemTy (element type) instead of the pointer type when computing LoadSize. This ensures the full struct is transferred.
https://github.com/llvm/llvm-project/pull/165366
More information about the flang-commits
mailing list