Skip to content

CFG: compute dominance pre/post-numbers and support dom query in O(1). - #26

Merged
cfallin merged 2 commits into
mainfrom
cfallin/fast-dominates
Oct 9, 2026
Merged

cfallin merged 2 commits into
mainfrom
cfallin/fast-dominates

Conversation

@cfallin

@cfallin cfallin commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

This is the same trick as in Cranelift and elsewhere, and replaces an O(domtree depth) iterative walk up the domtree. Important for fast validation of large function bodies.

This is the same trick as in Cranelift and elsewhere, and replaces an
O(|domtree depth|) iterative walk up the domtree. Important for fast
validation of large function bodies.
@cfallin
cfallin requested a review from fitzgen October 2, 2026 01:39
@cfallin cfallin mentioned this pull request Oct 2, 2026
Comment thread src/cfg/mod.rs Outdated
@cfallin
cfallin merged commit 391f5b6 into main Oct 9, 2026
3 checks passed
@cfallin
cfallin deleted the cfallin/fast-dominates branch October 9, 2026 22:03
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.

2 participants