We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reduce the cost of c ? l : r
c ? l : r
Constraint count for branching is not optimal
Change code generation for c ? l : r from
ll == c * l rr == (1 - c) * r res == ll + rr
to
# res := c ? l : r res - r = c * (l - r)
This is backwards compatible, though we need to check that there are no regressions in any of the optimiser steps
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Abstract
Reduce the cost of
c ? l : r
Motivation
Constraint count for branching is not optimal
Specification
Change code generation for
c ? l : r
fromto
Backwards Compatibility
This is backwards compatible, though we need to check that there are no regressions in any of the optimiser steps
The text was updated successfully, but these errors were encountered: