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

Fix AssignAndPushReferenceValue ignoring var value coercion #2190

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

ike709
Copy link
Collaborator

@ike709 ike709 commented Jan 28, 2025

This still allows the optimization to apply in most cases and also fixes #2188

I disassembled the bytecode of the example and confirmed the optimization is no longer applied in that case.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Jan 28, 2025
@wixoaGit wixoaGit merged commit 863f60d into OpenDreamProject:master Jan 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Peephole optimizations incorrectly assume var = value will always set the var to that value
2 participants