aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-01-19 13:05:20 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-01-19 12:05:20 +0000
commite2a1e6a441f9ced9412609cd4d8ae8ede52628a3 (patch)
tree4b5b32f73bb7f7d32c6c5d3c9876f543a772cdf4 /gcc/predict.h
parentd1b9a5724b8a05d2d2d51b3e5d13cc785326c74f (diff)
downloadgcc-e2a1e6a441f9ced9412609cd4d8ae8ede52628a3.zip
gcc-e2a1e6a441f9ced9412609cd4d8ae8ede52628a3.tar.gz
gcc-e2a1e6a441f9ced9412609cd4d8ae8ede52628a3.tar.bz2
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
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/predict.h b/gcc/predict.h
index 5771515..e4d1da0 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see
#define PROB_ALWAYS (REG_BR_PROB_BASE)
#define PROB_UNLIKELY (REG_BR_PROB_BASE / 5 - 1)
#define PROB_LIKELY (REG_BR_PROB_BASE - PROB_UNLIKELY)
+#define PROB_UNINITIALIZED (-1)
#define DEF_PREDICTOR(ENUM, NAME, HITRATE, FLAGS) ENUM,
enum br_predictor