This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix hitrate of indirect call predictor
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Jan 2017 10:54:28 +0100
- Subject: Fix hitrate of indirect call predictor
- Authentication-results: sourceware.org; auth=none
Hi,
this patch fixes hitrate of indirect call predictor according to Martin's
measurements.
Boostrapped/regtested x86_64-linux, comitted.
Honza
PR middle-end/77484
* predict.def (PRED_INDIR_CALL): Set to 86.
Index: predict.def
===================================================================
--- predict.def (revision 244206)
+++ predict.def (working copy)
@@ -121,7 +121,7 @@ DEF_PREDICTOR (PRED_CALL, "call", HITRAT
/* PRED_CALL is not very reliable predictor and it turns out to be even
less reliable for indirect calls and polymorphic calls. For spec2k6
the predictio nis slightly in the direction of taking the call. */
-DEF_PREDICTOR (PRED_INDIR_CALL, "indirect call", HITRATE (51), 0)
+DEF_PREDICTOR (PRED_INDIR_CALL, "indirect call", HITRATE (86), 0)
DEF_PREDICTOR (PRED_POLYMORPHIC_CALL, "polymorphic call", HITRATE (59), 0)
/* Recursive calls are usually not taken or the function will recurse