8000 gh-106149: move unconditional jump direction resolution from optimizer to assembler by iritkatriel · Pull Request #106291 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106149: move unconditional jump direction resolution from optimizer to assembler #106291

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 4 commits into from
Jul 1, 2023
Merged
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
Next Next commit
fix edge case
  • Loading branch information
iritkatriel committed Jun 30, 2023
commit 6452df32a112b6aa635d0b602a6b649d72edb253
2 changes: 1 addition & 1 deletion Python/assemble.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ resolve_unconditional_jumps(instr_sequence *instrs)

for (int i = 0; i < instrs->s_used; i++) {
instruction *instr = &instrs->s_instrs[i];
bool is_forward = (instr->i_oparg >= i);
bool is_forward = (instr->i_oparg > i);
switch(instr->i_opcode) {
case JUMP:
assert(SAME_OPCODE_METADATA(JUMP, JUMP_FORWARD));
Expand Down
0