Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-133672: Allow LOAD_FAST to be optimized to LOAD_FAST_BORROW #133721

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
Loading
from
Prev Previous commit
Next Next commit
Fix linter issues.
  • Loading branch information
ljfp committed May 14, 2025
commit a4300a5e6c21b6555cfba4ceb4c5803c49dd8294
4 changes: 2 additions & 2 deletions 4 Python/flowgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -3268,7 +3268,7 @@ optimize_load_fast(cfg_builder *g)
break;
}
}

if (depth_from_tos_at_block_end != -1) {
can_borrow = check_borrow_safety_globally(block, depth_from_tos_at_block_end, local_idx, g);
} else {
Expand Down Expand Up @@ -3305,7 +3305,7 @@ optimize_load_fast(cfg_builder *g)
can_borrow = false;
}
}

if (unconsumed_in_block && !found_any_on_stack) {
can_borrow = false;
}
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.