Hacker News new | ask | show | jobs
by mbel 26 days ago
Unless your code targets some exotic architecture, like idk x86.
1 comments

Not really. Wait until the compiler starts vectorizing your code and using instructions requiring alignment (like the ones with A or NT in the mnemonic).
Usually the compiler will probably not generate those
> Usually...probably...

you're betting against the compiler ever improving.

This would be a regression
Why? Automatic vectorization is pretty bad and has been for years, but wouldn't it be nice if the compiler could unroll-loops and use SIMD instructions to make your code faster while also being correct?
If you are using SIMD instructions on x86 you probably want the unaligned ones