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

Remove unnecessary calls to Crystal::CodeGenVisitor#union_type_and_value_pointer #15491

Conversation

HertzDevil
Copy link
Contributor

#union_type_and_value_pointer always emits a pair of getelementptr LLVM instructions, even when the caller is not interested in the pointer to a mixed union value's type ID or data. This PR eliminates those redundant getelementptrs.

@straight-shoota straight-shoota added this to the 1.16.0 milestone Feb 20, 2025
@straight-shoota straight-shoota merged commit debc74a into crystal-lang:master Feb 21, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants