]> gcc.gnu.org Git - gcc.git/commit
Use sreal::nearest_int
authorJan Hubicka <jh@suse.cz>
Fri, 21 Jul 2023 14:50:49 +0000 (16:50 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 21 Jul 2023 14:51:46 +0000 (16:51 +0200)
commitfeeee84079ee165f13f9fb8cdcf5dcea98d394e0
treeb1690f1a312f0b3b6186dd732d815e0b1d9115d0
parentfc92f5811e77b091d65045f2daa0f83c31d00797
Use sreal::nearest_int

Fix conversions from sreal to nearest integer.

gcc/ChangeLog:

* cfgloop.cc (get_estimated_loop_iterations): Use sreal::to_nearest_int
* cfgloopanal.cc (expected_loop_iterations_unbounded): Likewise.
* predict.cc (estimate_bb_frequencies): Likewise.
* profile.cc (branch_prob): Likewise.
* tree-ssa-loop-niter.cc (estimate_numbers_of_iterations): Likewise
gcc/cfgloop.cc
gcc/cfgloopanal.cc
gcc/predict.cc
gcc/profile.cc
gcc/tree-ssa-loop-niter.cc
This page took 0.057533 seconds and 5 git commands to generate.