Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@p @dcc @Inginsub @Suiseiseki
>compilers
>second-guessing
The other side of the coin are people that don't know what they are doing, think they know what they are doing (the most dangerous people). These people keep trying to outsmart compiler optimizations and 99% of the fail to do so.
At least from my point of view that is why compilers turned aggressive with optimizations, to silence these people that complain about performance while writing bad code and while trying to outsmart compilers. That might be why compilers turned to rewriting whole functions, creating multiples of the same functions for different branches,...
The other reason might also be the increasing usage of C++ which literally is optimizer abuse. The first-pass code from codegen that gets generated is horrific. That's also why modern C++ compilers have three stages of optimization before even generating machine code.