aalhour / aalhour/PyCOOLC

Epic 3: Code Optimizations

Đang mở
#19 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
41
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.