aalhour / aalhour/PyCOOLC

Epic 3: Code Optimizations

未关闭
#19 0 条评论 0 个 reaction 已指派 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 摘要。