On Wed, Sep 13, 2017 at 3:46 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Wed, Sep 13, 2017 at 03:41:19PM +0200, Richard Biener wrote: >> On its own -O3 doesn't add much (some loop opts and slightly more >> aggressive inlining/unrolling), so whatever it does we >> should consider doing at -O2 eventually. > > Well, -O3 adds vectorization, which we don't enable at -O2 by default.
As said, -fprofile-use enables it so -O2 should eventually do the same for "really hot code". Richard. > Jakub