Bug 47233

Summary: IPA reference tends to explode in memory use with -fprofile-generate
Product: gcc Reporter: Jan Hubicka <hubicka>
Component: tree-optimizationAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal Keywords: memory-hog
Priority: P3    
Version: 4.6.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2011-01-09 23:07:05

Description Jan Hubicka 2011-01-09 14:46:46 UTC
Compiling Mozilla, IPA reference OOMs for me after allocating about 9GB of bitmaps.  It is because the counters inserted to every function by profile-generate are especially bad for the datastructure used by IPA-reference.

As a temporary workaround, I will probably disable IPA reference with profiling is active.
Comment 1 Jan Hubicka 2011-01-09 23:07:05 UTC
Path posted http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00508.html
Comment 2 Jan Hubicka 2011-01-12 10:39:43 UTC
Author: hubicka
Date: Wed Jan 12 10:39:39 2011
New Revision: 168700

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168700
Log:
	PR tree-optimization/47233
	* opts.c (common_handle_option): Disable ipa-reference with profile feedback.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/opts.c
Comment 3 Jan Hubicka 2011-01-12 10:45:40 UTC
Workaround comitted, unasigning and removing from list of Mozilla dependencies.