diff mbox

Fix PR49365

Message ID alpine.LNX.2.00.1106221610430.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener June 22, 2011, 2:12 p.m. UTC
This fixes the prefetching regression caused by rev. 166552 by
adjusting the default min-insn-to-prefetch-ratio.  I benchmarked
SPEC2006 with this change on AMD hardware (where prefetching
is on by default) and apart from recovering the 436.cactusADM
regression there is no other change in performance.

Also bootstrapped and tested on x86_64-unknown-linux-gnu.

I'll wait for comments before committing.

Richard.

2011-06-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49365
	* params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
diff mbox

Patch

Index: gcc/params.def
===================================================================
--- gcc/params.def	(revision 175293)
+++ gcc/params.def	(working copy)
@@ -825,7 +825,7 @@  DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RAT
 	  "min-insn-to-prefetch-ratio",
 	  "Min. ratio of insns to prefetches to enable prefetching for "
           "a loop with an unknown trip count",
-	  10, 0, 0)
+	  9, 0, 0)
 
 DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO,
 	  "prefetch-min-insn-to-mem-ratio",