diff options
author | Krish Gupta <krishom70@gmail.com> | 2025-09-15 22:36:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-15 18:06:43 +0100 |
commit | 0741209385ae62fc8c529f807c6f4f9777d94bc3 (patch) | |
tree | bb1c30f28b853e3d7e46091eaa6b15b24b4446e6 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 95d5d984db4092136ad4b178b765516168c31b9e (diff) | |
download | llvm-0741209385ae62fc8c529f807c6f4f9777d94bc3.zip llvm-0741209385ae62fc8c529f807c6f4f9777d94bc3.tar.gz llvm-0741209385ae62fc8c529f807c6f4f9777d94bc3.tar.bz2 |
[flang][OpenMP] Guard lastprivate scoping on DO (#157760)
Add HLFIR FileCheck ensuring `lastprivate(v)` on an `omp do` is realized
as privatization on the inner wsloop and not on the enclosing `omp
parallel`.
This matches OpenMP semantics and prevents regressions.
- No `private(v)` at `omp.parallel`
- `omp.wsloop ... private(...)` present
Unable to reproduce #157035 on current main; this test documents the
expected lowering.
p.s- do refer to
[delayed-privatization](https://lists.llvm.org/pipermail/mlir-commits/2025-January/088206.html?utm_source=chatgpt.com)
<img width="2940" height="1912" alt="image"
src="https://github.com/user-attachments/assets/5c3a0656-fe0a-4bd5-be98-b626a7a719c1"
/>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions