[all-commits] [llvm/llvm-project] 077a28: [flang][acc] remap symbol appearing in reduction c...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Nov 25 06:25:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 077a280cf586b29c6aa37a17637bcb6b91dc121c
      https://github.com/llvm/llvm-project/commit/077a280cf586b29c6aa37a17637bcb6b91dc121c
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M flang/lib/Lower/OpenACC.cpp
    A flang/test/Lower/OpenACC/acc-reduction-remapping.f90

  Log Message:
  -----------
  [flang][acc] remap symbol appearing in reduction clause (#168876)

This patch is a follow-up of #162306 for the reduction clause.

Inside the compute region that carries the reduction clause, a new
hlfir.declare is generated for symbol appearing in the reduction clause.
The input of this hlfir.declare is the acc.reduction result. The related
semantics::Symbol is remapped to the hlfir.declare result so that any
reference to the symbol inside the compute region will use this SSA
value as the starting point instead of the SSA value for the host
address.



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