aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-01-12 11:39:39 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2011-01-12 10:39:39 +0000
commitb0223c3ebec9f302169221f382f49826f6c7a5b6 (patch)
treed352b325707c5aea374001dd7ad9bc935694143f /gcc/opts.c
parent81dc6eea5e96c6ec48f6a1d1e8855db0d8805bdd (diff)
downloadgcc-b0223c3ebec9f302169221f382f49826f6c7a5b6.zip
gcc-b0223c3ebec9f302169221f382f49826f6c7a5b6.tar.gz
gcc-b0223c3ebec9f302169221f382f49826f6c7a5b6.tar.bz2
re PR tree-optimization/47233 (IPA reference tends to explode in memory use with -fprofile-generate)
PR tree-optimization/47233 * opts.c (common_handle_option): Disable ipa-reference with profile feedback. From-SVN: r168700
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 42d53f4..ee39500 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1561,6 +1561,11 @@ common_handle_option (struct gcc_options *opts,
opts->x_flag_value_profile_transformations = value;
if (!opts_set->x_flag_inline_functions)
opts->x_flag_inline_functions = value;
+ /* FIXME: Instrumentation we insert makes ipa-reference bitmaps
+ quadratic. Disable the pass until better memory representation
+ is done. */
+ if (!opts_set->x_flag_ipa_reference && in_lto_p)
+ opts->x_flag_ipa_reference = false;
break;
case OPT_fshow_column: