https://web.ist.utl.pt/nuno.lopes/pubs/ub-pldi25.pdf
Although there is a common belief within the compiler community that UB
enables certain optimizations that would not be possible otherwise, no
rigorous large-scale studies have been conducted on this subject. At the same time, there is growing interest in eliminating UB from
programming languages to improve security.
Although there is a common belief within the compiler community that UB
enables certain optimizations that would not be possible otherwise, no
rigorous large-scale studies have been conducted on this subject. At the same time, there is growing interest in eliminating UB from
programming languages to improve security.