Originally posted by Azpegath
View Post
But:
1. New compilers (gcc-5, gcc-6) should be less problematic with -O3 than gcc-4 etc.
2. flto is main selling point of new compilers and flto needs aggressive optimisations to make a nice difference. FLTO brings to the table the ability to optimize across compile units, which doesn't mean much if you can not optimize much anyway.
IMO there is not much point in agressively optimizing every bit of the system. Most of the things can be -O2 non-flto and then just do flto on selected big, complex, deep libraries and packages, which can then bring substantial benefits.
Comment