[all-commits] [llvm/llvm-project] a530a3: [flang][hlfir] Extend InlineHLFIRCopy to inline co...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Mon Jun 8 22:33:10 PDT 2026
Branch: refs/heads/users/ergawy/inline-hlfir-copy
Home: https://github.com/llvm/llvm-project
Commit: a530a33971bcd819173ef7b3e4041eac5e5f2a68
https://github.com/llvm/llvm-project/commit/a530a33971bcd819173ef7b3e4041eac5e5f2a68
Author: ergawy <kareem.ergawy at gmail.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M flang/include/flang/Optimizer/HLFIR/Passes.td
M flang/lib/Optimizer/HLFIR/Transforms/CMakeLists.txt
A flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopy.cpp
R flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp
M flang/lib/Optimizer/Passes/Pipelines.cpp
R flang/test/HLFIR/inline-hlfir-copy-in.fir
A flang/test/HLFIR/inline-hlfir-copy.fir
Log Message:
-----------
[flang][hlfir] Extend InlineHLFIRCopy to inline copy_out with copy-back
Rename `InlineHLFIRCopyIn` to `InlineHLFIRCopy` and extend it to inline
the paired `hlfir.copy_out` operation. The copy_out is inlined at its
original location, after the call, ensuring proper ordering of copy-back
and deallocation.
Only inlines when no copy-back is required (intent(in)); intent(inout/out)
pairs are left untransformed.
Based on https://github.com/llvm/llvm-project/pull/179096.
Co-Authored-By: Kazuaki Matsumura <kmatsumura at nvidia.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>
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