diff options
author | Richard Biener <rguenther@suse.de> | 2014-09-03 14:28:20 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-09-03 14:28:20 +0000 |
commit | b30e733a13c9eb196b7dfbf7afd4135d7d4c4fd0 (patch) | |
tree | d9acb560791ee3c948edbda624678fa83ab651c4 /gcc/opts.c | |
parent | c8f403525ae53bc8cdba13ea5f8d8f9a95ed08d6 (diff) | |
download | gcc-b30e733a13c9eb196b7dfbf7afd4135d7d4c4fd0.zip gcc-b30e733a13c9eb196b7dfbf7afd4135d7d4c4fd0.tar.gz gcc-b30e733a13c9eb196b7dfbf7afd4135d7d4c4fd0.tar.bz2 |
opts.c (default_options_optimization): Adjust max-combine-insns to 2 for -Og.
2014-09-03 Richard Biener <rguenther@suse.de>
* opts.c (default_options_optimization): Adjust
max-combine-insns to 2 for -Og.
From-SVN: r214879
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |