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 unstructured loop exits: Don't introduce loops #6676

Merged
merged 3 commits into from
Jun 14, 2024

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Jun 6, 2024

Previously, if the latch exit was reachable from a different exit block for the loop, then the pass would introduce a loop involving that exit block and the latch exit. This is unwanted and unaccounted for.

  • Add a test for shared exits.
  • Add a test for non-dedicated latch exit

@dneto0 dneto0 requested a review from a team as a code owner June 6, 2024 16:41
@dneto0
Copy link
Collaborator Author

dneto0 commented Jun 6, 2024

cc: @amaiorano

Copy link
Member

@dmpots dmpots left a comment

Choose a reason for hiding this comment

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

LGTM overall.

Previously, if the latch exit was reachable from a different exit block
for the loop, then the pass would introduce a loop involving that exit
block and the latch exit.  This is unwanted and unaccounted for.

- Add a test for shared exits.
- Add a test for non-dedicated latch exit
@amaiorano amaiorano merged commit 206b7c2 into microsoft:main Jun 14, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants