8000 [mypyc] Generate faster code for bool comparisons and arithmetic by JukkaL · Pull Request #14489 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

[mypyc] Generate faster code for bool comparisons and arithmetic #14489

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

Merged
merged 13 commits into from
Feb 5, 2023
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
JukkaL committed Jan 21, 2023
commit 02bae7748b655af05144b3967568026243a82fc1
1 change: 1 addition & 0 deletions mypyc/irbuild/ll_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
">>=",
}

# Binary operations on bools that are specialized and don't just promote operands to int
BOOL_BINARY_OPS: Final = {"&", "&=", "|", "|=", "^", "^=", "==", "!=", "<", "<=", ">", ">="}


Expand Down
0