diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-03 23:50:05 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-03 23:50:05 +0000 |
commit | dbfc1664de3fffbcf914f948a5c99b0adb347460 (patch) | |
tree | f71a6c934abe134dd6b13c539736910da43d4680 /gcc/cfglayout.h | |
parent | 66eba28109f081023b12ed04687c8613914c4dd1 (diff) | |
download | gcc-dbfc1664de3fffbcf914f948a5c99b0adb347460.tar.gz |
* cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
at all if edge is not specified.
(can_copy_bbs_p, copy_bbs): New.
* cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
* cfgloop.c (get_loop_body): Comment more precisely.
* cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
(scale_bbs_frequencies): Fix comment typo.
(can_duplicate_loop_p): Use can_copy_bbs_p.
(duplicate_loop_to_header_edge): Simplify by using copy_bbs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.h')
-rw-r--r-- | gcc/cfglayout.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfglayout.h b/gcc/cfglayout.h index 1602289ac05..3258fe8fba5 100644 --- a/gcc/cfglayout.h +++ b/gcc/cfglayout.h @@ -41,4 +41,7 @@ extern bool cfg_layout_can_duplicate_bb_p (basic_block); extern basic_block cfg_layout_duplicate_bb (basic_block, edge); extern void insn_locators_initialize (void); extern void reemit_insn_block_notes (void); +extern bool can_copy_bbs_p (basic_block *, unsigned); +extern void copy_bbs (basic_block *, unsigned, basic_block *, + edge *, unsigned, edge *, struct loop *, struct loops *); extern void cfg_layout_initialize_rbi (basic_block); |