Files
hakorune/docs/archive/cleanup/CLEANUP_SWEEP.md
nyash-codex 2dfe363365 refactor(joinir): Phase 242-EX-A - Delete legacy Pattern3 lowerer
Remove hardcoded Pattern3 PoC implementation (loop_with_if_phi_minimal.rs)
and enhance if-sum mode to handle complex conditions like `i % 2 == 1`.

Key changes:
- condition_pattern.rs: Accept BinaryOp in comparison operands (+58 lines)
- loop_with_if_phi_if_sum.rs: Dynamic complex condition lowering (+147 lines)
- pattern3_with_if_phi.rs: Remove lower_pattern3_legacy() (-130 lines)
- loop_with_if_phi_minimal.rs: Delete entire file (-437 lines)
- loop_patterns/with_if_phi.rs: Update stub (-45 lines)
- mod.rs: Remove module reference (-4 lines)

Net reduction: -664 lines of hardcoded PoC code

Test results: 909/909 PASS (legacy mode completely removed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 01:27:08 +09:00

32 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Status: Historical
# Cleanup Sweep (Phase 11.812 Bridge)
目的
- レガシー/未使用コード・重複実装・旧命名の残骸を段階的に除去し、MIR/VM/JIT の読みやすさと安全性を高める。
優先カテゴリ(初回パス)
- MIR:
- 旧レガシー命令の痕跡TypeCheck/Cast/WeakNew/WeakLoad/BarrierRead/BarrierWrite の分岐/診断まわり)。
- `builder_modularized/*``builder/*` の重複(存在時は後者へ収斂)。
- VM/JIT:
-`std::env::var` の散在config::env/jit::config へ寄せられるもの)。
- BoxCall 経路の TODO/旧コメント(経路確定後に削除)。
- Docs/Tools:
- 古い計画/アーカイブとの重複ページ整理現行PLAN/TECHNICAL_SPECへ誘導
進め方
- まず一覧化rgベース → PRでまとめて削除/移動)。
- 削除基準: 未参照・未テスト・新仕様と重複でかつ互換層なし。
- 互換が必要な場合は警告/診断ログに降格し、実装は1本に統合。
チェックリスト(暫定)
- [ ] builder_modularized の実使用確認(未使用なら削除/統合)。
- [ ] optimizer の診断/オプション環境変数の棚卸しENV_VARS.md へ集約)。
- [ ] wasm backend の RefGet/RefSet 旧実装コメント更新。
- [ ] 直 env 読みを advisory で一覧 → 対象の優先度決め。
- [ ] dead codeテストで未参照の削除段階的
メモ
- claude code 指摘「37件」は次のスイープで対象抽出 → PRリンク化予定。