Skip to content

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

Merged
Jamiras merged 1 commit into
masterfrom
feature/optimize_div_self
Sep 17, 2026
Merged

Jamiras merged 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
@Jamiras
Jamiras merged commit f54ee64 into master Sep 17, 2026
1 check passed
@Jamiras
Jamiras deleted the feature/optimize_div_self branch September 17, 2026 23:57
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