public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Speedup -Og
@ 2014-09-03 14:14 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2014-09-03 14:14 UTC (permalink / raw)
  To: gcc-patches


I seem to have lost this patch in my dev tree for some reason.
After introducing --param max-combine-insns it was the idea
to restrict combine to two-insn combines for -Og as combine
is a major RTL compile-time hog.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2014-09-03  Richard Biener  <rguenther@suse.de>

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

Index: gcc/opts.c
===================================================================
*** gcc/opts.c	(revision 214810)
--- gcc/opts.c	(working copy)
*************** default_options_optimization (struct gcc
*** 636,641 ****
--- 637,648 ----
  			   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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-03 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 14:14 [PATCH] Speedup -Og Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).