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

Address #295 #296

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Address #295 #296

merged 1 commit into from
Sep 16, 2023

Conversation

Pat-Lafon
Copy link
Contributor

brilirs incorrectly did not look for control flow from the final basic block in a function. I think it has just so happened that most functions are linear in their control flow and that all functions have terminated on their final block.

The fix is super quick, just moving the "last block" check into the else arm after checking for an effectful last instructions in the block.

I've added the example from #295 as a test case. Thanks to @SanjitBasker for the report!

@sampsyo sampsyo merged commit e72ab48 into sampsyo:main Sep 16, 2023
16 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