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

Handle blocks that have multiple paths to the same successor #156

Open
dcbaker opened this issue Nov 13, 2024 · 0 comments
Open

Handle blocks that have multiple paths to the same successor #156

dcbaker opened this issue Nov 13, 2024 · 0 comments
Labels
difficulty:moderate MIR Issues related to the MIR (Mid level IR)

Comments

@dcbaker
Copy link
Owner

dcbaker commented Nov 13, 2024

Especially with continue and break, it's very possible to end up in a situation where there are multiple exits from a block to the same block, as:

foreach a: [b, c, d]
  if meson.has_header(a)
    break
  endif
endforeach

will end up in the tail of the loop block if the break statement is reached or if the foreach loop is exhausted.

@dcbaker dcbaker added MIR Issues related to the MIR (Mid level IR) difficulty:moderate labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty:moderate MIR Issues related to the MIR (Mid level IR)
Projects
None yet
Development

No branches or pull requests

1 participant