Introduce PROB_UNINITIALIZED constant and use it in predict.def.
authorMartin Liska <mliska@suse.cz>
Fri, 19 Jan 2018 12:05:20 +0000 (13:05 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 19 Jan 2018 12:05:20 +0000 (12:05 +0000)
commite2a1e6a441f9ced9412609cd4d8ae8ede52628a3
tree4b5b32f73bb7f7d32c6c5d3c9876f543a772cdf4
parentd1b9a5724b8a05d2d2d51b3e5d13cc785326c74f
Introduce PROB_UNINITIALIZED constant and use it in predict.def.

2018-01-19  Martin Liska  <mliska@suse.cz>

* predict.c (predict_insn_def): Add new assert.
(struct branch_predictor): Change type to signed integer.
(test_prediction_value_range): Amend test to cover
PROB_UNINITIALIZED.
* predict.def (PRED_LOOP_ITERATIONS): Use the new constant.
(PRED_LOOP_ITERATIONS_GUESSED): Likewise.
(PRED_LOOP_ITERATIONS_MAX): Likewise.
(PRED_LOOP_IV_COMPARE): Likewise.
* predict.h (PROB_UNINITIALIZED): Define new constant.

From-SVN: r256887
gcc/ChangeLog
gcc/predict.c
gcc/predict.def
gcc/predict.h