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

Remove JumpOp from Jump insn; remove "fallthrough" op in text repr #47

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

sbillig
Copy link
Collaborator

@sbillig sbillig commented Jun 20, 2024

The JumpOp fallthrough/jump distinction doesn't seem useful. Block order may change during optimization; rather than ensuring that optimizations update the JumpOp accordingly, codegen should instead check if the jumped-to block follows the current block to determine whether a jump operation is necessary.

@sbillig sbillig requested a review from Y-Nak June 20, 2024 20:11
Copy link
Collaborator

@Y-Nak Y-Nak left a comment

Choose a reason for hiding this comment

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

Makes sense!

@Y-Nak Y-Nak merged commit bc25040 into fe-lang:main Jun 21, 2024
9 checks passed
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