◐ Shell
clean mode source ↗

Bytecode parity - for-loop cleanup, return duplication, late jump threading fix by youknowone · Pull Request #7580 · RustPython/RustPython

@youknowone mentioned this pull request

Apr 10, 2026

youknowone

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

…eading fix

- Use POP_TOP instead of POP_ITER for for-loop break/return cleanup
- Expand duplicate_end_returns to clone final return for jump predecessors
- Restrict late jump threading pass to unconditional jumps only
- Skip exception blocks in inline/reorder passes
- Simplify threaded_jump_instr NoInterrupt handling

Copilot AI pushed a commit that referenced this pull request

Apr 12, 2026
…eading fix (#7580)

- Use POP_TOP instead of POP_ITER for for-loop break/return cleanup
- Expand duplicate_end_returns to clone final return for jump predecessors
- Restrict late jump threading pass to unconditional jumps only
- Skip exception blocks in inline/reorder passes
- Simplify threaded_jump_instr NoInterrupt handling
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>

This was referenced

May 1, 2026