This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

predict.def patch installed



Hi,
I've installed the attached patch to predict.def to match Andrea's tester.

Sat Dec 15 14:09:58 CET 2001  Jan Hubicka  <jh@suse.cz>
	* predict.def (PRED_NORETURN, PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
	PRED_ERROR_RETURN): Make probabilities match reality.

Index: predict.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/predict.def,v
retrieving revision 1.13
diff -c -3 -p -r1.13 predict.def
*** predict.def	2001/12/13 11:34:07	1.13
--- predict.def	2001/12/15 13:09:28
*************** DEF_PREDICTOR (PRED_BUILTIN_EXPECT, "__b
*** 64,70 ****
  	       PRED_FLAG_FIRST_MATCH)
  
  /* Branch to basic block containing call marked by noreturn attribute.  */
! DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_ALWAYS,
  	       PRED_FLAG_FIRST_MATCH)
  
  /* Loopback edge is taken.  */
--- 64,70 ----
  	       PRED_FLAG_FIRST_MATCH)
  
  /* Branch to basic block containing call marked by noreturn attribute.  */
! DEF_PREDICTOR (PRED_NORETURN, "noreturn call", HITRATE (99),
  	       PRED_FLAG_FIRST_MATCH)
  
  /* Loopback edge is taken.  */
*************** DEF_PREDICTOR (PRED_LOOP_PRECONDITIONING
*** 86,100 ****
  DEF_PREDICTOR (PRED_LOOP_HEADER, "loop header", HITRATE (64), 0)
  
  /* Pointers are usually not NULL.  */
! DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (83), 0)
  
  /* NE is probable, EQ not etc...  */
! DEF_PREDICTOR (PRED_OPCODE_POSITIVE, "opcode values positive", HITRATE (78), 0)
! DEF_PREDICTOR (PRED_OPCODE_NONEQUAL, "opcode values nonequal", HITRATE (70), 0)
  DEF_PREDICTOR (PRED_FPOPCODE, "fp_opcode", HITRATE (90), 0)
  
  /* Branch guarding call is probably taken.  */
  DEF_PREDICTOR (PRED_CALL, "call", HITRATE (70), 0)
  
  /* Branch causing function to terminate is probably not taken.  */
! DEF_PREDICTOR (PRED_ERROR_RETURN, "error return", PROB_LIKELY, 0)
--- 86,100 ----
  DEF_PREDICTOR (PRED_LOOP_HEADER, "loop header", HITRATE (64), 0)
  
  /* Pointers are usually not NULL.  */
! DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (81), 0)
  
  /* NE is probable, EQ not etc...  */
! DEF_PREDICTOR (PRED_OPCODE_POSITIVE, "opcode values positive", HITRATE (79), 0)
! DEF_PREDICTOR (PRED_OPCODE_NONEQUAL, "opcode values nonequal", HITRATE (71), 0)
  DEF_PREDICTOR (PRED_FPOPCODE, "fp_opcode", HITRATE (90), 0)
  
  /* Branch guarding call is probably taken.  */
  DEF_PREDICTOR (PRED_CALL, "call", HITRATE (70), 0)
  
  /* Branch causing function to terminate is probably not taken.  */
! DEF_PREDICTOR (PRED_ERROR_RETURN, "error return", HITRATE (52), 0)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]