[all-commits] [llvm/llvm-project] 8a3d7c: [Flang][OpenMP] Per-sym checks to introduce barrie...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Feb 14 04:24:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a3d7cedb72add026c3f5bf7a82f0bf729b3f434
      https://github.com/llvm/llvm-project/commit/8a3d7cedb72add026c3f5bf7a82f0bf729b3f434
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    M flang/lib/Lower/OpenMP/DataSharingProcessor.h
    A flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90

  Log Message:
  -----------
  [Flang][OpenMP] Per-sym checks to introduce barriers (#127074)

Whenever there is a `lastprivate` variable and another unrelated
variable sets the `mightHaveReadHostSym` flag during Flang lowering
privatization, this will result in the insertion of a barrier.

This patch modifies this behavior such that this barrier will not be
inserted unless the same symbol both sets the flag and has
`lastprivate`.



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