[all-commits] [llvm/llvm-project] 9df4ae: [flang] add some missing stackrestore with -fstack...
jeanPerier via All-commits
all-commits at lists.llvm.org
Wed Jul 8 09:11:06 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9df4aed204020bc79be55afa7b177822759856fb
https://github.com/llvm/llvm-project/commit/9df4aed204020bc79be55afa7b177822759856fb
Author: jeanPerier <jperier at nvidia.com>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M flang/lib/Optimizer/Transforms/StackArrays.cpp
M flang/test/Transforms/stack-arrays.fir
Log Message:
-----------
[flang] add some missing stackrestore with -fstack-arrays (#208161)
In the StackArray pass that moves array temporaries from the heap to the
stack under -fstack-arrays, when visiting FreeMemOp to insert
stackrestore, the code was not unwrapping converts as done in other
parts of the code leading to the allocation conversion and stacksave
insertion to happen without the emission of the stackrestore.
Reuse the same utility as in the rest of the pass to get consistent
behavior and fix the memory leak.
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