[flang-commits] [flang] [flang][OpenACC] do not load pointer and allocatables component in data clauses (PR #171445)
Kareem Ergawy via flang-commits
flang-commits at lists.llvm.org
Wed Dec 10 00:30:46 PST 2025
ergawy wrote:
> @tblah and @ergawy and @agozillon, I did not change the behavior OpenMP because I was not 100% sure the same is needed for OpenMP and this requires quite a few lit test updates, but you may want to double check and do the same, whole pointers/allocatable also seem to not be dereferenced in OpenMP data clause lowering.
I talk a look at the affected tests (set `loadAllocatableAndPointerComponent = false` by default), and it seems that we only load from the `fir.ref` to compute array bounds. Mapping happens on the reference not the loaded component. @agozillon would be better to answer this though.
https://github.com/llvm/llvm-project/pull/171445
More information about the flang-commits
mailing list