8000 GH-130415: Optimize JIT path for _TO_BOOL_INT branching by Klaus117 · Pull Request #130477 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-130415: Optimize JIT path for _TO_BOOL_INT branching #130477

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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove redundant comment
  • Loading branch information
brandtbucher authored Feb 22, 2025
commit debc65dc8a49909ee3c95eb19f7d47ee83ba9bca
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def f(n):
trace = []
for i in range(n):
# zero is always (int) 0, but we can only prove that it's a integer:
zero = i - i # at this point python knows f is an int, but doesnt know that it is 0 (we know it is 0 though)
zero = i - i
trace.append("A")
if not zero: # Kept.
trace.append("B")
Expand Down
Loading
0