[all-commits] [llvm/llvm-project] f857be: [flang][hlfir] Shallow copy elemental results with...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Tue Oct 3 13:10:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f857bef59df9c6e127630b389bfaceeceef92923
      https://github.com/llvm/llvm-project/commit/f857bef59df9c6e127630b389bfaceeceef92923
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
    A flang/test/HLFIR/elemental-shallow-copy.fir

  Log Message:
  -----------
  [flang][hlfir] Shallow copy elemental results with allocatable components. (#68040)

To avoid the overhead of deallocating allocatable components of the
elemental temporary result on every iteration of the elemental operation,
we can use a shallow copy instead of deep-copy assign.




More information about the All-commits mailing list