aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-01-06 17:10:09 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-01-06 16:10:09 +0000
commit350de209bfd0c368ce590f89f59d8950e4bc29b4 (patch)
tree2020de3672e60c9c0419dd8af6df627911d53051 /gcc/predict.c
parent12e917fff2800a4bfd591d09675b21e71ae8bc75 (diff)
downloadgcc-350de209bfd0c368ce590f89f59d8950e4bc29b4.zip
gcc-350de209bfd0c368ce590f89f59d8950e4bc29b4.tar.gz
gcc-350de209bfd0c368ce590f89f59d8950e4bc29b4.tar.bz2
re PR middle-end/77484 (Static branch predictor causes ~6-8% regression of SPEC2000 GAP)
PR middle-end/77484 * predict.def (PRED_POLYMORPHIC_CALL): Set to 58 * predict.c (tree_estimate_probability_bb): Reverse direction of polymorphic call predictor. From-SVN: r244167
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index f851e14..fa4e626 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -2789,7 +2789,7 @@ tree_estimate_probability_bb (basic_block bb)
if (gimple_call_fndecl (stmt))
predict_edge_def (e, PRED_CALL, NOT_TAKEN);
else if (virtual_method_call_p (gimple_call_fn (stmt)))
- predict_edge_def (e, PRED_POLYMORPHIC_CALL, TAKEN);
+ predict_edge_def (e, PRED_POLYMORPHIC_CALL, NOT_TAKEN);
else
predict_edge_def (e, PRED_INDIR_CALL, TAKEN);
break;