8000 gh-93554: Conditional jumps only jump forward by iritkatriel · Pull Request #96318 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-93554: Conditional jumps only jump forward #96318

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 11 commits into from
Sep 1, 2022
Prev Previous commit
Next Next commit
use basicblock_last_instr
  • Loading branch information
iritkatriel committed Aug 26, 2022
commit 8a3d0175a60c391b96b75597b08067a7ded4990c
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -7720,7 +7720,7 @@ assemble_emit(struct assembler *a, struct instr *i)

static int
normalize_jumps_in_block(cfg_builder *g, basicblock *b) {
struct instr *last = &b->b_instr[b->b_iused-1];
struct instr *last = basicblock_last_instr(b);
if (last == NULL || !is_jump(last)) {
return 0;
}
Expand Down
0