Skip to content
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

Increase __cilkrts_stack_frame alignment to ABI stack alignment #261

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

VoxSciurorum
Copy link
Contributor

All the __cilkrts_stack_frame objects are allocated on the stack. Increasing their alignment to the ABI stack alignment might allow the compiler to generate better code. The cost is possibly allocating an extra word because the size of an object is a multiple of its alignment. This alignment is only used within a module. The runtime will use the alignment dictated by C code.

On mainstream targets this will increase alignment from 8 to 16 bytes.

…inter.

All the __cilkrts_stack_frame objects are aligned on the stack.
There is no cost to increasing their alignment and the compiler
might generate better code.  This alignment is only used within
a module.  The runtime will use whatever value is declared in C code.
@neboat neboat merged commit c9dee81 into dev/18.x Aug 25, 2024
7 checks passed
@VoxSciurorum VoxSciurorum deleted the jfc/align branch August 26, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants