Skip to content

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.

@vtjnash vtjnash removed the backport 1.12 Change should be backported to release-1.12 label Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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