https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39326

--- Comment #57 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 17 Feb 2016, sergstesh at yahoo dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39326
> 
> --- Comment #56 from Sergei Steshenko <sergstesh at yahoo dot com> ---
> "-O2 ... and 820MB peak memory use" vs "-O3 ... and 700MB peak memory use" -
> according to my common sense -O3 is stronger than -02 optimization, and one
> should expect greater memory use.
> 
> So, can the above be an indication of yet another bug ? I.e. -O3 in reality
> does not do something it is supposed to do while -O2 does this ?

More like -O3 cleans up the code due to stronger optimization before
the memory-hogging part comes in and thus that one needs less memory
do to its work.

Reply via email to