From b0223c3ebec9f302169221f382f49826f6c7a5b6 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 12 Jan 2011 11:39:39 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/opts.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1615efa643a..357271531e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-12 Jan Hubicka + + PR tree-optimization/47233 + * opts.c (common_handle_option): Disable ipa-reference with profile feedback. + 2011-01-12 Nicola Pero * c-parser.c (c_parser_objc_at_property_declaration): Improved diff --git a/gcc/opts.c b/gcc/opts.c index 42d53f4e49e..ee39500cbce 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: -- 2.30.2