Skip to content

Conversation

@JackieXu
Copy link

@JackieXu JackieXu commented Nov 25, 2025

This only replaces if statements with a single assignment in them, as multi-assignment replacement is more expensive than just having the branch.

An expansion to this idea would be to take a look at switch statements as well.

@github-actions
Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

Copy link

@smashbrosllc-collab smashbrosllc-collab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 star

Copy link

@smashbrosllc-collab smashbrosllc-collab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 star

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.

2 participants