aalhour / aalhour/PyCOOLC

Epic 3: Code Optimizations

オープン
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
41
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

## Epic 3a: Hook existing optimizations into pipeline

### Goal: wire the optimization infrastructure that's already built and tested.

- [ ] Hook constant propagation into pipeline (before codegen)
- [ ] Hook dead code elimination into pipeline
- [ ] Add pass manager + ordering tests (deterministic output)

## Epic 3b: New optimizations (build from scratch)

### Goal: add more passes; start with low-risk, high-win and ensure they preserve semantics.

- [ ] Copy propagation
- [ ] Common subexpression elimination (CSE)
- [ ] Peephole optimizations (algebraic simplification, redundant load/store, jump threading)
- [ ] Strength reduction (safe cases only; document assumptions)
- [ ] Devirtualization (static dispatch when receiver type is known)
- [ ] Void check elimination (skip isvoid checks when provably non-null)
- [ ] Loop-invariant code motion (LICM) - after CFG/SSA is stable
- [ ] Tiny method inlining (size threshold; watch for code bloat)
- [ ] Tail call optimization (recursive methods that return directly)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。