Bug 47233 - IPA reference tends to explode in memory use with -fprofile-generate
Summary: IPA reference tends to explode in memory use with -fprofile-generate
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: memory-hog
Depends on:
Blocks:
 
Reported: 2011-01-09 14:46 UTC by Jan Hubicka
Modified: 2021-10-01 02:49 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2011-01-09 23:07:05


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.