Skip to content

feat: add redundancy elimination and loop optimization passes#31

Draft
arnoox wants to merge 6 commits intomainfrom
pr-f/redundancy-loop-passes
Draft

feat: add redundancy elimination and loop optimization passes#31
arnoox wants to merge 6 commits intomainfrom
pr-f/redundancy-loop-passes

Conversation

@arnoox
Copy link
Copy Markdown
Owner

@arnoox arnoox commented Mar 23, 2026

Summary (WIP)

Adds four post-lowering optimization passes (requires PR #29 infrastructure):

  • local_cse: Local CSE within each block
  • gvn: Global value numbering across blocks
  • licm: Loop invariant code motion
  • branch_fold: Branch condition simplification

Also includes shared utilities and structural passes.

⚠️ Note: Requires testing and integration with value optimization passes (PR #30).

Dependencies:

bench and others added 6 commits March 23, 2026 09:07
Add four post-lowering optimization passes:
- local_cse: Local common subexpression elimination within blocks
- gvn: Global value numbering across blocks using dominator tree
- licm: Loop invariant code motion
- branch_fold: Branch condition simplification

Also includes shared optimizer utilities and refactored structural passes.

WIP: Tests and full integration in progress.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Create comprehensive tracking document for the 5-PR split of PR #12:
- Summary table of all 5 PRs (A, D, E, F, G)
- Detailed breakdown of each PR with files, tests, and review checklist
- Known issues and blockers (PR F pattern match errors)
- Merge order and dependencies
- Testing checklist and known limitations
- Quick reference guide and next steps

This enables efficient planning and review of the optimizer implementation work.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@arnoox arnoox marked this pull request as draft March 27, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant