Skip to content

Structured IR#12

Merged
bmourad01 merged 21 commits intomasterfrom
structured-ir
Jan 10, 2026
Merged

Structured IR#12
bmourad01 merged 21 commits intomasterfrom
structured-ir

Conversation

@bmourad01
Copy link
Owner

No description provided.

Also silence warnings
Also, make LCA part of the tree API
Since we already do a DFS, we can save the RPO numbers and enforce
that children are sorted by it.

This affects several downstream passes.
Instead of changing the IR definition (which would affect
many downstream consumers), we can work around this using
some existing constructs in the language.
When optimized, the compiler turns this into a lookup table, but we
can do even better by just turning it into a shift. However, it
requires an unsafe cast.
@bmourad01 bmourad01 marked this pull request as ready for review January 10, 2026 17:22
@bmourad01 bmourad01 merged commit 9f87c78 into master Jan 10, 2026
2 checks passed
@bmourad01 bmourad01 deleted the structured-ir branch January 10, 2026 17:24
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