-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implement @switch #854
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
Labels
Comments
sjrd
added a commit
to sjrd/dotty
that referenced
this issue
Feb 5, 2016
This does not yet unable the checks that `@switch` verifies that the compiler was indeed able to perform the optimization. This implementation also does not support guards. A match with guards will never be optimized as a switch.
sjrd
added a commit
to sjrd/dotty
that referenced
this issue
Feb 5, 2016
This does not yet unable the checks that `@switch` verifies that the compiler was indeed able to perform the optimization. This implementation also does not support guards. A match with guards will never be optimized as a switch.
sjrd
added a commit
to sjrd/dotty
that referenced
this issue
Feb 5, 2016
This does not yet unable the checks that `@switch` verifies that the compiler was indeed able to perform the optimization. This implementation also does not support guards. A match with guards will never be optimized as a switch.
sjrd
added a commit
to sjrd/dotty
that referenced
this issue
Feb 8, 2016
This does not yet unable the checks that `@switch` verifies that the compiler was indeed able to perform the optimization. This implementation also does not support guards. A match with guards will never be optimized as a switch.
DarkDimius
added a commit
that referenced
this issue
Mar 31, 2016
Fix #854: Optimize matches on primitive constants as switches.
DarkDimius
pushed a commit
to dotty-linker/dotty
that referenced
this issue
Jun 27, 2016
This does not yet unable the checks that `@switch` verifies that the compiler was indeed able to perform the optimization. This implementation also does not support guards. A match with guards will never be optimized as a switch.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current implementation of pattern matcher does not optimize switch blocks on primitive constants.
The text was updated successfully, but these errors were encountered: