aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-01-08 10:53:06 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-01-08 09:53:06 +0000
commitd8dc87c24cf4883d3934d285a9bf1e5ca5384022 (patch)
treeb3393ff7dd938aefc960f3822403b88fe74e7ee0
parent38285dd71996a0020d3bd24fb0c366e8859368af (diff)
downloadgcc-d8dc87c24cf4883d3934d285a9bf1e5ca5384022.zip
gcc-d8dc87c24cf4883d3934d285a9bf1e5ca5384022.tar.gz
gcc-d8dc87c24cf4883d3934d285a9bf1e5ca5384022.tar.bz2
re PR middle-end/77484 (Static branch predictor causes ~6-8% regression of SPEC2000 GAP)
PR middle-end/77484 * predict.def (PRED_INDIR_CALL): Set to 86. From-SVN: r244207
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/predict.def2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9d710df..375b79a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-01 Jan Hubicka <hubicka@ucw.cz>
+
+ PR middle-end/77484
+ * predict.def (PRED_INDIR_CALL): Set to 86.
+
2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
PR preprocessor/54124
diff --git a/gcc/predict.def b/gcc/predict.def
index 5ddb36a..f3b17c7 100644
--- a/gcc/predict.def
+++ b/gcc/predict.def
@@ -121,7 +121,7 @@ DEF_PREDICTOR (PRED_CALL, "call", HITRATE (55), 0)
/* 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