-
Notifications
You must be signed in to change notification settings - Fork 224
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
Compiler panic during SSA unrolling #6734
Comments
@vezenovm I've seen cases where loop invariant code motion can hoist instructions into a loop's header block instead of its pre-header. Perhaps this is an instance of that where it causes an issue. |
I think this program just manages to have enough indirection so that we get halfway through optimizing out the loop before we start trying to unroll.
|
Maybe we just need a simplify_cfg pass before unrolling then. Either that or check for the constant case during unrolling. |
The following noir program crashes:
nargo test
yields:This seems to be related to the for loop iterating over
elements_to_copy
. An empty loop body also causes the crash, andelements_to_copy
can be simplified a bit and still cause a crash, for example:The text was updated successfully, but these errors were encountered: