predict.def (PRED_NORETURN, [...]): Make probabilities match reality.
authorJan Hubicka <jh@suse.cz>
Sat, 15 Dec 2001 13:14:06 +0000 (14:14 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 15 Dec 2001 13:14:06 +0000 (13:14 +0000)
* predict.def (PRED_NORETURN, PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
PRED_ERROR_RETURN): Make probabilities match reality.

From-SVN: r48041

gcc/ChangeLog
gcc/predict.def

index 36f16c6e5fd787d9a356ec3833697ad6de481c99..b4214f969ff82899c10f2c175bd22368cbf8eb54 100644 (file)
@@ -1,3 +1,8 @@
+Sat Dec 15 14:13:03 CET 2001  Jan Hubicka  <jh@suse.cz>
+
+       * predict.def (PRED_NORETURN, PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
+       PRED_ERROR_RETURN): Make probabilities match reality.
+
 2001-12-15  Jakub Jelinek  <jakub@redhat.com>
 
        * configure.in: Check for ld.
index cc6831d82f19436addf0c1046db91261da011ff7..1201625c4b6e20dd542fd2e45806e85512bee44c 100644 (file)
@@ -64,7 +64,7 @@ DEF_PREDICTOR (PRED_BUILTIN_EXPECT, "__builtin_expect", PROB_VERY_LIKELY,
               PRED_FLAG_FIRST_MATCH)
 
 /* Branch to basic block containing call marked by noreturn attribute.  */
-DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_ALWAYS,
+DEF_PREDICTOR (PRED_NORETURN, "noreturn call", HITRATE (99),
               PRED_FLAG_FIRST_MATCH)
 
 /* Loopback edge is taken.  */
@@ -86,15 +86,15 @@ DEF_PREDICTOR (PRED_LOOP_PRECONDITIONING, "loop preconditioning", PROB_VERY_LIKE
 DEF_PREDICTOR (PRED_LOOP_HEADER, "loop header", HITRATE (64), 0)
 
 /* Pointers are usually not NULL.  */
-DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (83), 0)
+DEF_PREDICTOR (PRED_POINTER, "pointer", HITRATE (81), 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_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", PROB_LIKELY, 0)
+DEF_PREDICTOR (PRED_ERROR_RETURN, "error return", HITRATE (52), 0)