News for hackers. Stuff that matters.
Re:A 94x speed improvement demonstrated using handwritten as... by astrange on Monday November 04, 2024 @03:46PM (#42045819)
Clang doesn't guarantee that; it runs everything through its optimizer, which means you can use an intrinsic and not get the instruction it's named after.

The other big general issue is memory aliasing. If you're working on 8-bit data then C says that means it aliases everything and it's going to deoptimize your other memory accesses. Conversely if you're freely switching types like SIMD tends to do, that's against the aliasing rules.

There are no comments on this comment yet.