Skip to content

feat: introduce new ir optimizations#12

Open
arnoox wants to merge 8 commits intomainfrom
ir-optimizer
Open

feat: introduce new ir optimizations#12
arnoox wants to merge 8 commits intomainfrom
ir-optimizer

Conversation

@arnoox
Copy link
Owner

@arnoox arnoox commented Feb 28, 2026

contributing to #3

Arnaud Riess added 8 commits February 24, 2026 20:40
refactor: enhance BinOp and UnOp enums with Hash derive
refactor: clean up copy propagation and dead block elimination logic
refactor: merge blocks optimization and update imports
…tant arithmetic

- Added a new module for constant propagation in the optimizer.
- Integrated constant propagation into the optimization pipeline.
- Updated the end-to-end test for constant arithmetic to verify constant folding, ensuring that the expression `10 + 20` is evaluated to `30` at compile time.
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