8000 Initialize recover dominator root independently by dajiaohuang · Pull Request #1814 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content
1 8000

Initialize recover dominator root independently - #1814

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/ir-recover-dom-sanity-root
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/ir-recover-dom-sanity-root

Conversation

@dajiaohuang
Copy link
Copy Markdown

The dominator sanity checker initialized the synthetic recover root's set with the entry block bit. Initialize each root with its own bit so the reference relation matches the documented rule that roots are dominated only by themselves.

@dajiaohuang
Copy link
Copy Markdown
Author

Withdrawing this change after checking the complete supported IR path. Recover blocks are documented to contain only loads of named results followed by Return, and createRecoverBlock constructs exactly that terminal block. sanityCheckDomTree explicitly skips Recover in the relation comparison. Its reference bit therefore does not propagate to successors or change validation for supported IR; this patch corrects an internal initialization inconsistency without an established actual failure.

@dajiaohuang dajiaohuang closed this Oct 8, 2026
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

0