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

Fix conditional call f() if cond; and conditional tail-call return f() if cond; statements. #124

Open
Bananattack opened this issue Mar 9, 2021 · 0 comments

Comments

@Bananattack
Copy link
Collaborator

I recently merged in a pull request for some new tests from @lhsazevedo in #122. This closed pull request documents the behaviour of the tests, but all of these should generate passing code.

  • Conditional calls should be equivalent to either a specialized conditional call instruction (if it exists), or a conditional branch instruction around a block that contains a call instruction.
  • Conditional tail calls should be equivalent to conditional branches -- or failing a tail-call optimization, a conditional branch instruction around a block containing a call instruction followed by a return instruction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant