3 ms·
The short answer is "Yes, sometimes". Clever hand-written SIMD code is still consistently better, sometimes dramatically better. But generally speaking, I've f
by Remnant44 2y ago
The short answer is "Yes, sometimes".
Clever hand-written SIMD code is still consistently better, sometimes dramatically better. But generally speaking, I've found Clang to be pretty good at auto-vectorizing code when I've "cleared the path" so to speak, organizing the data access in ways that are SIMD friendly.
On the Windows platform, in my experience MSVC is a disaster in terms of auto-vectorization. I haven't been able to get it to consistently vectorize anything above toy examples.