re PR tree-optimization/47233 (IPA reference tends to explode in memory use with...
authorJan Hubicka <jh@suse.cz>
Wed, 12 Jan 2011 10:39:39 +0000 (11:39 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 12 Jan 2011 10:39:39 +0000 (10:39 +0000)
PR tree-optimization/47233
* opts.c (common_handle_option): Disable ipa-reference with profile feedback.

From-SVN: r168700

gcc/ChangeLog
gcc/opts.c

index 1615efa643a4079d93c4c0645d88035d5f5c3326..357271531e14856588cccf4266061a5b0f7defd6 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-12  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimization/47233
+       * opts.c (common_handle_option): Disable ipa-reference with profile feedback.
+
 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>     
 
        * c-parser.c (c_parser_objc_at_property_declaration): Improved
index 42d53f4e49e72b8de706a1ef88a4c8a96fe5d1ee..ee39500cbce8d5659f02c656322197da8ec1bd2e 100644 (file)
@@ -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: