Re:Incrementing vectors
by totalperspectiv on Monday August 26, 2019 @03:03PM
(#20802675)
rustc also doesn't vectorize it?
[ Parent
| on HN ]
It does if you use iterators as totalperspectiv did in their alternate version https://godbolt.org/z/JpwcRN
Because Rust bounds-checks indexes, which likely breaks LLVM's vectorisation (you'd have to reimplement vectorisation & vectorised bounds-checking in MIR for it to work I guess e.g. bounds-check the entire chunk before applying the vectorised operation).