[PATCH, rs6000] Correctly set rs6000_always_hint for ppc476

Peter Bergner bergner@vnet.ibm.com
Thu Jan 26 22:30:00 GMT 2012


The 476 cpu has dynamic branch prediction, so we don't want to always
use static branch prediction hints.  Is the following patch ok assuming
my currently running bootstrap/regtesting doesn't uncover any regressions?

Is this appropriate for the 4.6 and 4.5 branches as well?

Peter


	* config/rs6000/rs6000.c (rs6000_option_override_internal):
	Set rs6000_always_hint to false for 476.

Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c	(revision 183456)
+++ config/rs6000/rs6000.c	(working copy)
@@ -2960,7 +2960,8 @@ rs6000_option_override_internal (bool gl
 			&& rs6000_cpu != PROCESSOR_POWER6
 			&& rs6000_cpu != PROCESSOR_POWER7
 			&& rs6000_cpu != PROCESSOR_PPCA2
-			&& rs6000_cpu != PROCESSOR_CELL);
+			&& rs6000_cpu != PROCESSOR_CELL
+			&& rs6000_cpu != PROCESSOR_PPC476);
   rs6000_sched_groups = (rs6000_cpu == PROCESSOR_POWER4
 			 || rs6000_cpu == PROCESSOR_POWER5
 			 || rs6000_cpu == PROCESSOR_POWER7);




More information about the Gcc-patches mailing list