diff options
author | Martin Liska <mliska@suse.cz> | 2018-01-23 16:43:59 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-01-23 15:43:59 +0000 |
commit | 813d6db9c42ae27854356c87f0fa16b0f9079118 (patch) | |
tree | bf904d9fa75ede80506f4ff8781fe497534ac014 /gcc/predict.c | |
parent | 66ce8ff7603b3b717fff93d706b1cf3548ba4671 (diff) | |
download | gcc-813d6db9c42ae27854356c87f0fa16b0f9079118.tar.gz |
Remove predictors that are unrealiable.
2018-01-23 Martin Liska <mliska@suse.cz>
* predict.def (PRED_INDIR_CALL): Set probability to PROB_EVEN in
order to ignore the predictor.
(PRED_POLYMORPHIC_CALL): Likewise.
(PRED_RECURSIVE_CALL): Likewise.
From-SVN: r256988
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 724ba458db9..2d932e9fd11 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -4216,7 +4216,7 @@ test_prediction_value_range () continue; unsigned p = 100 * predictors[i].probability / REG_BR_PROB_BASE; - ASSERT_TRUE (p > 50 && p <= 100); + ASSERT_TRUE (p >= 50 && p <= 100); } } |