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

codegen: cleanup gcstack call frames somewhat earlier #57410

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 14, 2025

Slightly reduces the amount of work these optimization passes need to do later, in most typical cases, and avoids putting an unknown call at the top of all of our functions, which can inhibit some optimizations of otherwise trivial functions.

Fixes #57400

@vtjnash vtjnash added compiler:codegen Generation of LLVM IR and native code backport 1.12 Change should be backported to release-1.12 labels Feb 14, 2025
@gbaraldi
Copy link
Member

I noticed this on #57380 and thought we could just make it unconditional, the check doesn't save much but implemented it anyway if you want to keep it 1dbdf34 (#57380)

@vtjnash
Copy link
Member Author

vtjnash commented Feb 14, 2025

That doesn't look sound (this same bug), so I don't think we want that

@vtjnash
Copy link
Member Author

vtjnash commented Feb 14, 2025

Oh, I see, that is just for final-lowering, deciding if the module contains anything we could lower. I think you'd need to add a !use_empty() call too to make that actually save any time.

This was referenced Feb 15, 2025
Slightly reduces the amount of work these optimization passes need to do
later, in most typical cases, and avoids putting an unknown call at the
top of all of our functions, which can inhibit some optimizations of
otherwise trivial functions.

Fixes #57400
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Feb 19, 2025
@vtjnash vtjnash merged commit 940928e into master Feb 20, 2025
6 of 8 checks passed
@vtjnash vtjnash deleted the jn/lost-gcframe branch February 20, 2025 21:37
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Feb 20, 2025
@KristofferC
Copy link
Member

Doesn't backport cleanly so some help with that would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12 compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

forgetting to make gc frames for simple functions for code reflection
4 participants