[all-commits] [llvm/llvm-project] 464d32: [flang][stack-arrays] Extend pass to work on decla...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Wed Jul 17 21:00:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 464d321ee8dde1eaf14b5537eaf030e6df513849
      https://github.com/llvm/llvm-project/commit/464d321ee8dde1eaf14b5537eaf030e6df513849
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2024-07-18 (Thu, 18 Jul 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/StackArrays.cpp
    A flang/test/Transforms/stack-arrays-hlfir.f90
    M flang/test/Transforms/stack-arrays.fir

  Log Message:
  -----------
  [flang][stack-arrays] Extend pass to work on declare ops and within omp regions (#98810)

Extends the stack-arrays pass to support `fir.declare` ops. Before that,
we did not recognize malloc-free pairs for which `fir.declare` is used
to declare the allocated entity. This is because the `free` op was
invoked on the result of the `fir.declare` op and did not directly use
the allocated memory SSA value.

This also extends the pass to collect the analysis results within OpenMP
regions.



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