diff options
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 81c6a18d0795..d17b9f21a40a 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1298,7 +1298,7 @@ predict_iv_comparison (struct loop *loop, basic_block bb, { int probability; bool overflow, overall_overflow = false; - widest_int compare_count, tem, loop_count; + widest_int compare_count, tem; widest_int loop_bound = wi::to_widest (loop_bound_var); widest_int compare_bound = wi::to_widest (compare_var); @@ -1308,7 +1308,8 @@ predict_iv_comparison (struct loop *loop, basic_block bb, /* (loop_bound - base) / compare_step */ tem = wi::sub (loop_bound, base, SIGNED, &overflow); overall_overflow |= overflow; - loop_count = wi::div_trunc (tem, compare_step, SIGNED, &overflow); + widest_int loop_count = wi::div_trunc (tem, compare_step, SIGNED, + &overflow); overall_overflow |= overflow; if (!wi::neg_p (compare_step) |