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

Passing parent stack frames to spawn-helper functions #252

Merged
merged 6 commits into from
Jul 30, 2024

Conversation

neboat
Copy link
Collaborator

@neboat neboat commented Jul 16, 2024

This PR drafts compiler changes to pass a pointer to the __cilkrts_stack_frame in a parent spawning function, along with other compile-time information, to a spawn helper. This change allows the spawn helper to access the parent stack frame more efficiently and enables a variety of optimizations to reduce spawn overhead.

This PR provides the necessary compiler changes for PR OpenCilk/cheetah#29.

@VoxSciurorum
Copy link
Contributor

This looks good, except I want a better comment around the isa<Constant> check so it is clear what problem is being avoided.

@neboat neboat merged commit 21d8fe4 into OpenCilk:dev/18.x Jul 30, 2024
7 checks passed
@neboat neboat deleted the dev/18.x-spawn-helper branch November 23, 2024 00:20
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