Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use blocks instead of instructions in DominatorTree #9585

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

amartosch
Copy link
Contributor

Since all branching instructions are terminators now, it makes sense to use blocks in DominatorTree as a unit of granularity. This makes interfaces a bit cleaner and allows to avoid idom(..).inst_block(..).expect(..) chain in a couple of places.

This is an independent part of work on adding new dominator tree computation algorithm.
Discussed in zulip.

@amartosch amartosch requested a review from a team as a code owner November 7, 2024 23:34
@amartosch amartosch requested review from fitzgen and removed request for a team November 7, 2024 23:34
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Nov 8, 2024
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean up! Thanks!

@fitzgen fitzgen added this pull request to the merge queue Nov 8, 2024
Merged via the queue into bytecodealliance:main with commit a6c4f9a Nov 8, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants