[all-commits] [llvm/llvm-project] e16f60: [flang] Relax conflicts detection in ElementalAssi...

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


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

  Changed paths:
    M flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp
    A flang/test/HLFIR/opt-bufferization-tonto.fir

  Log Message:
  -----------
  [flang] Relax conflicts detection in ElementalAssignBufferization. (#143045)

If there is a read-effect operation inside `hlfir.elemental`,
there is no reason to block moving it to the assignment point
unless there are write-effect operations between the elemental
and the assignment. The previous code was disallowing the optimization
even if there were only read-effect operations in between.

This case is from 465.tonto, though this change does not improve
performance at all.



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