We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Actually, the opt_loop_invariant does not consider if/else expressions to move. In this sense, the code:
opt_loop_invariant
if/else
while (i < n) { if (n > 3) { something_without_i } }
Will not be optimized to its equivalent code:
if (i < n) { if (n > 3) { something_without_i } } while (i < n) { }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actually, the
opt_loop_invariant
does not considerif/else
expressions to move. In this sense, the code:Will not be optimized to its equivalent code:
The text was updated successfully, but these errors were encountered: