This is just terrible. I'm really sad that it's 2019, and not only are we
still talking about undefined behaviour, but there are also blog posts arguing
for undefined behaviour! I expect a good (programmer-friendly) compiler to
at least warn the programmer in any case of provable, or potential, undefined behaviour, or ideally, refuse to compile/use
implementation-defined behaviour (i.e. exactly "what the hardware does"). Anything else is basically just inviting security bugs in your code.
But, for a counter-point: what is an example of a code/algorithm that not only uses undefined behaviour (i.e. relies on it in order to compile to fast, optimized code), but also couldn't possibly be rewritten to eliminate undefined behaviour (while keeping the same speed)?