Commit e150d64
committed
Improve codegen bytecode parity
- Add CFG block splitting, jump threading, backward jump normalization
- Add genexpr StopIteration wrapper
- Add ConstantData::Slice and constant slice folding
- Add duplicate_exits_without_lineno and Block: Clone
- Add builtin(genexpr) optimization for tuple/list/set/all/any
- Add compile_try_except_no_finally for try-except without finally
- Add module_name_declared_global_in_nested_scope
- Add constant tuple folding in try_fold_constant_expr
- Add fstring literal-only optimization and empty literal elision
- Fix duplicate_exits_without_lineno: splice new blocks into linked list1 parent 1c39fdb commit e150d64
File tree
7 files changed
+927
-147
lines changed- Lib/test
- crates
- codegen/src
- snapshots
- compiler-core/src/bytecode
- vm/src
- vm
7 files changed
+927
-147
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
| |||
0 commit comments