[all-commits] [llvm/llvm-project] 319705: [flang] `do concurrent`: fix reduction symbol reso...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Wed Aug 27 08:06:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 319705d0ab6f7b78ca26ee49b87393473ae63082
      https://github.com/llvm/llvm-project/commit/319705d0ab6f7b78ca26ee49b87393473ae63082
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M flang/include/flang/Optimizer/OpenMP/Passes.td
    M flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
    A flang/test/Transforms/DoConcurrent/reduction_symbol_resultion.f90

  Log Message:
  -----------
  [flang] `do concurrent`: fix reduction symbol resolution when mapping to OpenMP (#155355)

Fixes #155273

This PR introduces 2 changes:
1. The `do concurrent` to OpenMP pass is now a module pass rather than a
function pass.
2. Reduction ops are looked up in the parent module before being
created.

The benefit of using a module pass is that the same reduction operation
can be used across multiple functions if the reduction type matches.



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