Skip to content

optimize x/x==0 to x==0 and x/x==1 to x!=0 - #658

Open
Jamiras wants to merge 1 commit into
masterfrom
feature/optimize_div_self
Open

optimize x/x==0 to x==0 and x/x==1 to x!=0#658
Jamiras wants to merge 1 commit into
masterfrom
feature/optimize_div_self

Conversation

@Jamiras

@Jamiras Jamiras commented Sep 10, 2026

Copy link
Copy Markdown
Owner

x/x will be 0 if x is 0, or 1 if x is anything but 0. So x/x=0 can be simplified to x=0 and x/x=1 can be simplified to x!=0.

@Jamiras Jamiras added this to the 1.17.4 milestone Sep 10, 2026
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.

1 participant