You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wondered if the compiler would generate such inefficient code when using if and while blocks, or if this only happens if the user is doing it himself.
At least for label-gotos this should be relatively simple to detect and remove. There is already code to remove useless gotos, which could just be extended to handle this.
Given the following code:
in NOLOL, it compiles to:
There is no need for a goto pointing to the next line.
I suggest during optimisation to search and remove all
goto
s that point to the next line.Thank you.
The text was updated successfully, but these errors were encountered: