diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 534258f39ce..61d8547def0 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -662,8 +662,7 @@ predict_loops (void) int probability; int max = PARAM_VALUE (PARAM_MAX_PREDICTED_ITERATIONS); if (host_integerp (niter, 1) - && tree_int_cst_lt (niter, - build_int_cstu (NULL_TREE, max - 1))) + && compare_tree_int (niter, max-1) == -1) { HOST_WIDE_INT nitercst = tree_low_cst (niter, 1) + 1; probability = ((REG_BR_PROB_BASE + nitercst / 2) |