opts.c (default_options_optimization): Adjust max-combine-insns to 2 for -Og.
authorRichard Biener <rguenther@suse.de>
Wed, 3 Sep 2014 14:28:20 +0000 (14:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Sep 2014 14:28:20 +0000 (14:28 +0000)
2014-09-03  Richard Biener  <rguenther@suse.de>

* opts.c (default_options_optimization): Adjust
max-combine-insns to 2 for -Og.

From-SVN: r214879

gcc/ChangeLog
gcc/opts.c

index de6481613d1297e799b479a80f87160b8d7ee887..12fdeb5c7bf763e7bf4061fa14d4417d057ec72d 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-03  Richard Biener  <rguenther@suse.de>
+
+       * opts.c (default_options_optimization): Adjust
+       max-combine-insns to 2 for -Og.
+
 2014-09-03  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/62015
index be1867c23882890d472b32a75d846f2a23c26119..337e6cc5d0c60f3d2c5ce7aed60c56e314323ed0 100644 (file)
@@ -636,6 +636,12 @@ default_options_optimization (struct gcc_options *opts,
                           default_param_value (PARAM_MIN_CROSSJUMP_INSNS),
                           opts->x_param_values, opts_set->x_param_values);
 
+  /* Restrict the amount of work combine does at -Og while retaining
+     most of its useful transforms.  */
+  if (opts->x_optimize_debug)
+    maybe_set_param_value (PARAM_MAX_COMBINE_INSNS, 2,
+                          opts->x_param_values, opts_set->x_param_values);
+
   /* Allow default optimizations to be specified on a per-machine basis.  */
   maybe_default_options (opts, opts_set,
                         targetm_common.option_optimization_table,