Visitar URL original
Compiler parity: docstring dedent, StopIteration wrapper, constant folding by youknowone · Pull Request #7530 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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
IR optimization passes: constant folding, superinstructions, jump nor…
…malization

- Binary op constant folding with Python floor-div/modulo semantics
- Unary negative folding into LOAD_CONST, with binop re-run
- Tuple/list/set/frozenset constant folding
- STORE_FAST_LOAD_FAST combination (insert_superinstructions before optimize_load_fast)
- JUMP → RETURN_VALUE inlining (normalize_jumps)
- RESUME depth correction for StopIteration wrapper
- DCE, unreachable block elimination, duplicate_end_returns
  • Loading branch information
youknowone committed Mar 29, 2026
commit 7c64b961165e9900d5716e412dd9cc5598e903f7
Loading