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

[Arc] Remove erroneous reset nesting in LowerState pass #5023

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

TaoBi22
Copy link
Contributor

@TaoBi22 TaoBi22 commented Apr 12, 2023

This fixes a bug that causes the scf.if blocks that represent reset logic on states to be progressively nested within the else blocks of those above, and adds a regression test to ensure that these scf.if blocks are appropriately separated.

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

Very nice! Thanks for fixing this!

@maerhart maerhart added the Arc Involving the `arc` dialect label Apr 12, 2023
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks a lot for fixing this 🎉

@maerhart maerhart merged commit 73bd384 into llvm:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arc Involving the `arc` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants