Author here. I genuinely forgot to check alternative execution policies when working on this. Thanks for pointing this out! As u/Successful_Yam_9023 pointed out, clang 22.1.0 with std::par_unseq only uses SIMD for loads and comparisons, but not for compress-store/left-pack + store. You can see in the opt pipeline view on Godbolt that this is done by the LoopVectorizePass, which means that I need to tweak my article intro somewhat. I haven't really spelunked into the gcc libstdc++ source, but at first glance it looks like they also have some sort of manual SIMD approach.
View all comments
Show parent comment
2
u/chkmr May 28 '26
Author here. I genuinely forgot to check alternative execution policies when working on this. Thanks for pointing this out! As u/Successful_Yam_9023 pointed out, clang 22.1.0 with
std::par_unseqonly uses SIMD for loads and comparisons, but not for compress-store/left-pack + store. You can see in the opt pipeline view on Godbolt that this is done by the LoopVectorizePass, which means that I need to tweak my article intro somewhat. I haven't really spelunked into the gcc libstdc++ source, but at first glance it looks like they also have some sort of manual SIMD approach.