about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authoroyvindln <oyvindln@users.noreply.github.com>2017-08-01 19:17:33 +0200
committeroyvindln <oyvindln@users.noreply.github.com>2017-08-01 19:31:50 +0200
commit4bb9a8b4ac27b48fb7989ef2900ec12a0face475 (patch)
tree257af90900d1f7db99edb23a55a51e7f96d71390 /src/rustllvm/RustWrapper.cpp
parentc2407516ff33d03d0e24c6a4268a5581e9bc8b4d (diff)
downloadrust-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