3 ms·
Autovectorization is annoying and hard to work with because it's unpredictable. It also fights you if you manually vectorize - you can write a SIMD loop and sca
by astrange 6y ago
Autovectorization is annoying and hard to work with because it's unpredictable. It also fights you if you manually vectorize - you can write a SIMD loop and scalar trailer loop, and then it'll autovectorize the trailer.
If instead you wrote in an infinite-length vector language and the compiler scalarized it for you, I think that could work better.