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

Optimize nil conditions for while and if #1269

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

primo-ppcg
Copy link
Contributor

Related: #1267

  • Updates specials.c to simplify more if and while forms with conditionals comparing against nil.
  • Prunes unnecessary (jmp 1) from else-less ifs whose return value is dropped.

@bakpakin bakpakin merged commit d2dd241 into janet-lang:master Aug 24, 2023
8 checks passed
@primo-ppcg primo-ppcg deleted the check-nil-form branch August 24, 2023 14:59
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.

2 participants