[all-commits] [llvm/llvm-project] 28a0ad: [flang][hlfir] fix issue 118922 (#119219)
jeanPerier via All-commits
all-commits at lists.llvm.org
Tue Dec 10 06:00:54 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28a0ad09c1c1184f667e2655318a138aa51dc9e8
https://github.com/llvm/llvm-project/commit/28a0ad09c1c1184f667e2655318a138aa51dc9e8
Author: jeanPerier <jperier at nvidia.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
A flang/test/HLFIR/element-codegen-issue-118922.fir
Log Message:
-----------
[flang][hlfir] fix issue 118922 (#119219)
hlfir.elemental codegen optimize-out the final as_expr copy for temps
local to its body, but sometimes, clean-up may have been emitted for
this temp, and the code did not handle that.
This caused #118922 and @113843.
Only elide the copy if the as_expr is the last op.
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