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

for signed wrapping remainder, do not compare lhs with MIN #89351

Merged
merged 1 commit into from
Oct 6, 2021

Commits on Oct 5, 2021

  1. for signed overflowing remainder, delay comparing lhs with MIN

    Since the wrapped remainder is going to be 0 for all cases when the rhs is -1,
    there is no need to divide in this case. Comparing the lhs with MIN is only done
    for the overflow bool. In particular, this results in better code generation for
    wrapping remainder, which discards the overflow bool completely.
    tspiteri committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    4ec0377 View commit details
    Browse the repository at this point in the history