4 ms·
No compiler-performed optimization will make your computer run faster, unless it's software that pokes magic variables in the hardware. UB isn't exclusively fo
by fao_ 10y ago
No compiler-performed optimization will make your computer run faster, unless it's software that pokes magic variables in the hardware.
UB isn't exclusively for performance reasons. Some UB, like aliasing-related UB, is simply because there is no Right Way to do things (The standard does not define memory layout).