Skip to content

feature/constant propagation v2#89

Merged
nahime0 merged 5 commits intomainfrom
feature/constant-propagation-v2
Apr 23, 2026
Merged

feature/constant propagation v2#89
nahime0 merged 5 commits intomainfrom
feature/constant-propagation-v2

Conversation

@nahime0
Copy link
Copy Markdown
Member

@nahime0 nahime0 commented Apr 23, 2026

Summary

Implements constant-propagation-v2 with more precise local propagation and folding:

  • use known switch subjects to merge only reachable switch paths
  • ignore unreachable catch writes when the propagated try body is non-throwing
  • fold known match expressions before assignment propagation
  • fold scalar indexed and associative array-literal accesses
  • update README, optimizer docs, pipeline docs, and ROADMAP

Tests

  • cargo test constant_propagation
  • cargo test -- --include-ignored

@nahime0 nahime0 merged commit cbe4860 into main Apr 23, 2026
1 check passed
@nahime0 nahime0 deleted the feature/constant-propagation-v2 branch April 23, 2026 11:21
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