aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2023-08-02 09:44:06 +0200
committerJan Hubicka <jh@suse.cz>2023-08-02 09:44:06 +0200
commitb278d3080ef23835438ec625b9841c6353c72e32 (patch)
tree5a9c532790444ca049d4103f517ec6c174aff610 /gcc/tree-ssa-phiopt.cc
parent2e93b92c1ec5fbbbe10765c6e059c3c90d564245 (diff)
downloadgcc-b278d3080ef23835438ec625b9841c6353c72e32.zip
gcc-b278d3080ef23835438ec625b9841c6353c72e32.tar.gz
gcc-b278d3080ef23835438ec625b9841c6353c72e32.tar.bz2
More profile updating clenaups
This patch commonizes loop_count_in computatoin with expected_loop_iterations_by_profile (and moves it to cfgloopanal.cc rather than manip) and fixes roundoff error in scale_loop_profile. I alos noticed that I managed to misapply the template change to gcc.dg/unroll-1.c. Bootstrapped/regtested x86_64-linux, comitted. gcc/ChangeLog: * cfgloop.h (loop_count_in): Declare. * cfgloopanal.cc (expected_loop_iterations_by_profile): Use count_in. (loop_count_in): Move here from ... * cfgloopmanip.cc (loop_count_in): ... here. (scale_loop_profile): Improve dumping; cast iteration bound to sreal. gcc/testsuite/ChangeLog: * gcc.dg/unroll-1.c: Fix template.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions