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

[SOL] Use no-op for anyext #140

Merged

Conversation

LucasSte
Copy link
Collaborator

@LucasSte LucasSte commented Mar 4, 2025

When LLVM target independent code generation emits an anyext instruction, we extend a value and we don't care about the high bits. In that case, we can simply do a no-op instead of using mov32.

In large programs (around 200kb), this action can save us 1kb.

@LucasSte LucasSte requested a review from Lichtso March 4, 2025 22:34
@LucasSte LucasSte marked this pull request as ready for review March 4, 2025 22:34
@LucasSte LucasSte merged commit 6b28be5 into anza-xyz:solana-rustc/18.1-2024-05-19 Mar 5, 2025
17 checks passed
@LucasSte LucasSte deleted the mod-anyext branch March 5, 2025 13:59
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