On Tue, May 01, 2012 at 09:35:24AM -0400, Marc Feeley wrote:
Strangely, with clang 3.0 it takes less time to compile with -O2
than
with -O1.
If I recall correctly, this phenomenon was first noticed in the 60's with IBM's Fortran H compiler. It turns out that most of the time was spent in the final process of putting instrutions together. After optimizing, there was less code to generate.
-- hendrik