diff options
| author | oyvindln <oyvindln@users.noreply.github.com> | 2017-08-01 19:17:33 +0200 |
|---|---|---|
| committer | oyvindln <oyvindln@users.noreply.github.com> | 2017-08-01 19:31:50 +0200 |
| commit | 4bb9a8b4ac27b48fb7989ef2900ec12a0face475 (patch) | |
| tree | 257af90900d1f7db99edb23a55a51e7f96d71390 /src/rustllvm/RustWrapper.cpp | |
| parent | c2407516ff33d03d0e24c6a4268a5581e9bc8b4d (diff) | |
| download | rust-4bb9a8b4ac27b48fb7989ef2900ec12a0face475.tar.gz rust-4bb9a8b4ac27b48fb7989ef2900ec12a0face475.zip | |
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
