Re:SIMD for C++ Developers [pdf]
by atom3 on Tuesday April 27, 2021 @04:55PM
(#26961416)
Oh right, I didn't think of looking for that, guess you're right and doing things by hand is still better
[ Parent
| on HN ]
It’s not terribly bad because CPUs are out-of-order. As far as I can tell, there’s no single dependency chain over all instructions in the loop body, some of these FMAs gonna run in parallel in your ISPC version. Still, I would expect manually-vectorized code to be slightly faster.