Skip to content

Optimize icmp eq and ne for select-on-icmp#2

Merged
claby2 merged 3 commits intomainfrom
nested-icmp
Dec 7, 2025
Merged

Optimize icmp eq and ne for select-on-icmp#2
claby2 merged 3 commits intomainfrom
nested-icmp

Conversation

@jameshu15869
Copy link
Copy Markdown
Collaborator

Handles the nesting like we talked about on Wednesday

When we have a select followed by an icmp and the inner condition
to the select is also an icmp, we can remove the select + icmp and
directly use the inner condition.

We negated the values of the inner_condition via bxor x 1.
@bisheshank
Copy link
Copy Markdown
Collaborator

I was here

@claby2 claby2 marked this pull request as ready for review December 7, 2025 18:46
@claby2 claby2 merged commit 25a7b83 into main Dec 7, 2025
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.

3 participants