isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:
There's this observation that C is not actually a low-level language where you program at the "hardware level", because modern CPUs with their parallelisms and predictions are way more complicated than the abstract machine that C implements.
And here's a perfect example of that: https://purplesyringa.moe/blog/quadrupling-code-performance-with-a-useless-if/
They had to trick the compiler to not optimize away code that allowed the CPU work faster!