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

fix(ssa refactor): filter unreachable blocks from cfg #1523

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

joss-aztec
Copy link
Contributor

Description

Problem*

Resolves #1520

Summary*

Prevents CFG from adding edges from unreachable nodes.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

I remember having to work around this while implementing the flattening pass. Looks like at least one bug fell through. I remember not being able to change this ordering before because some of our tests relied on the previous ordering (the dom tree?). Seems like all the tests pass though so I'm alright with merging. Thanks!

@jfecher jfecher added this pull request to the merge queue Jun 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2023
@jfecher jfecher added this pull request to the merge queue Jun 5, 2023
Merged via the queue into master with commit 202c345 Jun 5, 2023
9 checks passed
@jfecher jfecher deleted the joss/fix-bad-cfg branch June 5, 2023 20:56
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.

Flatten CFG pass hangs
2 participants