[all-commits] [llvm/llvm-project] ba8077: [flang] Use optimal shape for assign expansion as ...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Fri Jun 6 10:46:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba8077c9ddeeb7c8fb6e929f655fa686561a8f6d
      https://github.com/llvm/llvm-project/commit/ba8077c9ddeeb7c8fb6e929f655fa686561a8f6d
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRAssign.cpp
    M flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
    M flang/test/HLFIR/inline-hlfir-assign.fir
    A flang/test/HLFIR/opt-bufferization-elemental-assign-shape.fir

  Log Message:
  -----------
  [flang] Use optimal shape for assign expansion as a loop. (#143050)

During `hlfir.assign` inlining and `ElementalAssignBufferization`
we can deduce the optimal shape from `lhs` and `rhs` shapes.
It is probably better be done in a separate pass that propagates
constant shapes, but I have not seen any benchmarks that would
benefit from this yet. So consider this as a workaround for a bigger
TODO issue.

The `ElementalAssignBufferization` case is from 465.tonto,
but I do not have performance results yet (I do not expect much).



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