diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-29 21:21:12 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-29 21:21:12 +0000 |
commit | ab2c1de89558662bbdeed695778f46b4f64fa2d5 (patch) | |
tree | 7ce5c1502e93e296b04ac2412cba4ab28999e65b /gcc/predict.c | |
parent | 1e1472ccb9ce106e0a8dc6b4d38ea2b6c5a9028d (diff) |
- Fix comment typos that I'd introducted.
- Fix spurious whitespace differences.
- Use const X & instead of X for *wide_int parameters.
- Fuse declarations and initialisers.
- Avoid unnecessary *wide_int temporaries (e.g. wide_int (x) == 0
-> wi::eq_p (x, 0)).
- Fix some long lines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204183 138bc75d-0d04-0410-961f-82ee72b054a4
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) |