[all-commits] [llvm/llvm-project] 074120: [flang][OpenMP] Guard lastprivate scoping on DO (...

Krish Gupta via All-commits all-commits at lists.llvm.org
Mon Sep 15 10:07:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0741209385ae62fc8c529f807c6f4f9777d94bc3
      https://github.com/llvm/llvm-project/commit/0741209385ae62fc8c529f807c6f4f9777d94bc3
  Author: Krish Gupta <krishom70 at gmail.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    A flang/test/Lower/OpenMP/lastprivate-alloc-scope.f90

  Log Message:
  -----------
  [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"
/>



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