Skip to content

Find a way to take or drop temporaries without spilling them #1012

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

Closed
marijnh opened this issue Oct 8, 2011 · 0 comments
Closed

Find a way to take or drop temporaries without spilling them #1012

marijnh opened this issue Oct 8, 2011 · 0 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Oct 8, 2011

Currently, glue functions take a pointer to a value. This means we're spilling all temporary boxes and unique pointers to the stack just in order to drop them. This is rather wasteful. If we know the type (which we do for all immediates -- generic values are never treated as immediate), we should be able to take and drop without spilling.

@ghost ghost assigned marijnh Oct 8, 2011
marijnh added a commit that referenced this issue Oct 10, 2011
This way, it can be used to drop values without first spilling them.

Issue #1012
marijnh added a commit that referenced this issue Oct 10, 2011
@marijnh marijnh closed this as completed Oct 10, 2011
@marijnh marijnh removed their assignment Jun 16, 2014
arielb1 pushed a commit to arielb1/rust that referenced this issue Apr 10, 2015
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
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

No branches or pull requests

1 participant