[all-commits] [llvm/llvm-project] ee47ae: [flang] Treat hlfir.associate as Allocate for FIR ...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Mon May 12 18:34:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee47aea43572e751afe59f18a9816a5d9d3ca7c1
      https://github.com/llvm/llvm-project/commit/ee47aea43572e751afe59f18a9816a5d9d3ca7c1
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M flang/include/flang/Optimizer/HLFIR/HLFIROps.td
    M flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
    A flang/test/HLFIR/opt-bufferization-eval_in_mem-with-associate.fir

  Log Message:
  -----------
  [flang] Treat hlfir.associate as Allocate for FIR alias analysis. (#139004)

Early HLFIR optimizations may experience problems with values
produced by hlfir.associate. In most cases this is a unique
local memory allocation, but it can also reuse some other
hlfir.expr memory sometimes. It seems to be safe to assume
unique allocation for trivial types, since we always
allocate new memory for them.



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