[all-commits] [llvm/llvm-project] 2a32d7: [flang][OpenMP] fix predetermined privatization in...

Tom Eccles via All-commits all-commits at lists.llvm.org
Thu May 8 02:09:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a32d738bb213a8a1e814b65beb61e39b7c66834
      https://github.com/llvm/llvm-project/commit/2a32d738bb213a8a1e814b65beb61e39b7c66834
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    A flang/test/Lower/OpenMP/sections-predetermined-private.f90

  Log Message:
  -----------
  [flang][OpenMP] fix predetermined privatization inside section (#138159)

This now produces code equivalent to if there was an explicit private
clause on the SECTIONS construct.

The problem was that each SECTION construct got its own DSP, which tried
to privatize the same symbol for that SECTION. Privatization for
SECTION(S) happens on the outer SECTION construct and so the outer
construct's DSP should be shared.

Fixes #135108



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