-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flang] Add support for -fstack-arrays
option
#59231
Comments
@llvm/issue-subscribers-flang-ir |
@llvm/issue-subscribers-flang-driver |
I've posted an RFC covering the scope of the required changes https://reviews.llvm.org/D139617 |
Patches implementing |
Since the StackArray pass (https://reviews.llvm.org/D140415) is also committed, will it be fine to close this issue @kiranchandramohan? |
Yes this can be closed. Thanks for pointing this out @xgupta |
The stack-arrays option is enabled by
gfortran
atOfast
. While some of the allocations happen on the stack by default in llvm/flang, in some cases like array-assignments, the memory is allocated in the heap.Stack arrays has the following definition in the gfortran option help.
Note: This came out of the discussion regarding
Ofast
in https://discourse.llvm.org/t/rfc-the-meaning-of-ofast/66554The text was updated successfully, but these errors were encountered: