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

Add an overflow check in the Iter::next() impl for Range<_> to help with vectorization. #43595

Merged
merged 1 commit into from
Aug 9, 2017

Commits on Aug 1, 2017

  1. Add an overflow check in the Iter::next() impl for Range<_>

    This helps with vectorization in some cases, such as (0..u16::MAX).collect::<Vec<u16>>(),
     as LLVM is able to change the loop condition to use equality instead of less than
    oyvindln committed Aug 1, 2017
    Configuration menu
    Copy the full SHA
    4bb9a8b View commit details
    Browse the repository at this point in the history