3 ms·
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-vect
by William_BB 1y 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.
- sparkie 1y agoGCC can do better than the example I gave. https://godbolt.org/z/fo74G7d3W https://godbolt.org/z/fo74G7d3W