From 8d28e87da7134b1ba6de7add4457a8b20687edd3 Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Fri, 4 Jul 2003 01:50:05 +0200 Subject: cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies at all if edge is not specified. * 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. From-SVN: r68906 --- gcc/cfgloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/cfgloop.c') diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 8b439b9..fac614f 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -960,7 +960,9 @@ glb_enum_p (basic_block bb, void *glb_header) return bb != (basic_block) glb_header; } -/* Gets basic blocks of a loop. */ +/* Gets basic blocks of a LOOP. Header is the 0-th block, rest is in dfs + order against direction of edges from latch. Specially, if + header != latch, latch is the 1-st block. */ basic_block * get_loop_body (const struct loop *loop) { -- cgit v1.1