r/programming • u/awesomePop7291 • Jul 23 '26
Everyone Should Know SIMD
https://mitchellh.com/writing/everyone-should-know-simd
413
Upvotes
r/programming • u/awesomePop7291 • Jul 23 '26
View all comments
Show parent comment
51
u/Sopel97 Jul 23 '26
It's not that simple. A lot of these transformations depend on data layout. It can also be quite sensitive to type choices (for example x86 doesn't have mullo_epi8), which is particularly problematic in language with automatic integer promotion. Shuffles can also be hard to see through if they require reassembling arrays in memory. And what about aliasing?