Comment by William_BB
Comment by William_BB 2 months ago
My first thought was conditional branches inside the for loop based on the element as well. By any chance, do you know how hard it is for compilers to auto-vectorize something like this? I am generally not sure where the boundary is.
GCC can do better than the example I gave.
https://godbolt.org/z/fo74G7d3W