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

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Mon Aug 25 22:19:27 PDT 2025


  Branch: refs/heads/users/ergawy/dc_conv_reduction_sym_resultion
  Home:   https://github.com/llvm/llvm-project
  Commit: 084374e7156df95a7ee53bfa5edbd05a47cdc83a
      https://github.com/llvm/llvm-project/commit/084374e7156df95a7ee53bfa5edbd05a47cdc83a
  Author: ergawy <kareem.ergawy at amd.com>
  Date:   2025-08-26 (Tue, 26 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

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