Break out profile updating code from gimple_duplicate_sese_region
commit7df810d0d5745af756081824aaa347a2e69d2ead
authorJan Hubicka <jh@suse.cz>
Wed, 12 Jul 2023 23:29:17 +0000 (13 01:29 +0200)
committerJan Hubicka <jh@suse.cz>
Wed, 12 Jul 2023 23:29:17 +0000 (13 01:29 +0200)
treee8892803fd2adfcb92dbc58283f7011afc7c08d1
parent7a5e47658904de9dc90f1292f3f69769177706f9
Break out profile updating code from gimple_duplicate_sese_region

Move profile updating to tree-ssa-loop-ch.cc since it is
now quite ch specific. There are no functional changes.

Boostrapped/regtesed x86_64-linux, comitted.

gcc/ChangeLog:

* tree-cfg.cc (gimple_duplicate_sese_region): Rename to ...
(gimple_duplicate_seme_region): ... this; break out profile updating
code to ...
* tree-ssa-loop-ch.cc (update_profile_after_ch): ... here.
(ch_base::copy_headers): Update.
* tree-cfg.h (gimple_duplicate_sese_region): Rename to ...
(gimple_duplicate_seme_region): ... this.
gcc/tree-cfg.cc
gcc/tree-cfg.h
gcc/tree-ssa-loop-ch.cc