[all-commits] [llvm/llvm-project] de6c90: [flang][OpenMP] Handle "loop-local values" in `do ...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Wed Apr 2 06:43:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de6c9096ba5d186c0ebe11bae76425af70959232
      https://github.com/llvm/llvm-project/commit/de6c9096ba5d186c0ebe11bae76425af70959232
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2025-04-02 (Wed, 02 Apr 2025)

  Changed paths:
    M flang/docs/DoConcurrentConversionToOpenMP.md
    M flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
    A flang/test/Transforms/DoConcurrent/locally_destroyed_temp.f90

  Log Message:
  -----------
  [flang][OpenMP] Handle "loop-local values" in `do concurrent` nests (#127635)

Extends `do concurrent` mapping to handle "loop-local values". A
loop-local value is one that is used exclusively inside the loop but
allocated outside of it. This usually corresponds to temporary values
that are used inside the loop body for initialzing other variables for
example. After collecting these values, the pass localizes them to the
loop nest by moving their allocations.

PR stack:
- https://github.com/llvm/llvm-project/pull/126026
- https://github.com/llvm/llvm-project/pull/127595
- https://github.com/llvm/llvm-project/pull/127633
- https://github.com/llvm/llvm-project/pull/127634
- https://github.com/llvm/llvm-project/pull/127635 (this PR)



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