3 ms·
I quite frequently find -O3 to produce slower code than -O2. This is not actually surprising: the reliable operations are placed in 2, and the dodgy ones in 3.
by ncmncm 5y ago
I quite frequently find -O3 to produce slower code than -O2.
This is not actually surprising: the reliable operations are placed in 2, and the dodgy ones in 3. It is possible, even common, for 3 to be faster, but you can't rely on it. You have to measure.