6 ms·
Unless your code targets some exotic architecture, like idk x86.
by mbel 4mo ago
Unless your code targets some exotic architecture, like idk x86.
- cataphract 4mo agoNot really. Wait until the compiler starts vectorizing your code and using instructions requiring alignment (like the ones with A or NT in the mnemonic).
- saagarjha 4mo agoUsually the compiler will probably not generate those
- bigfishrunning 4mo ago> Usually...probably... you're betting against the compiler ever improving.
- saagarjha 4mo agoThis would be a regression
- bigfishrunning 4mo agoWhy? 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?
- saagarjha 4mo agoIf you are using SIMD instructions on x86 you probably want the unaligned ones