diff options
Diffstat (limited to 'gcc/cfgloop.cc')
-rw-r--r-- | gcc/cfgloop.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgloop.cc b/gcc/cfgloop.cc index 9ca85e6..6d46b5b 100644 --- a/gcc/cfgloop.cc +++ b/gcc/cfgloop.cc @@ -2012,7 +2012,7 @@ get_estimated_loop_iterations (class loop *loop, widest_int *nit) if (expected_loop_iterations_by_profile (loop, &snit, &reliable) && reliable) { - *nit = (snit + 0.5).to_int (); + *nit = snit.to_nearest_int (); return true; } return false; |