summaryrefslogtreecommitdiff
path: root/gcc/cfgbuild.c
diff options
context:
space:
mode:
authorctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-25 19:52:54 +0000
committerctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-25 19:52:54 +0000
commit1118aef745a25250fb86472ad8a585f335a233cf (patch)
treea5867d1e566bb25285998220b8ed1c4261740f02 /gcc/cfgbuild.c
parent63bd12e19c98ff38073b1d971a736999c7bfaedc (diff)
downloadgcc-1118aef745a25250fb86472ad8a585f335a233cf.tar.gz
Add more details to hot/cold partitioning comments and documentation.
2004-08-25 Caroline Tice <ctice@apple.com> * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details to comments at start of function. * cfgbuild.c (make_edges): Add more details to hot/cold partitioning comment. * cfgcleanup.c (try_simplify_condjump, try_forward_edges, merge_blocks_move_predecessor_nojumps, merge_blocks_move_successor_nojumps, merge_blocks_move, try_crossjump_to_edge, try_crossjump_bb): Likewise. * cfglayout.c (fixup_reorder_chain): Likewise. * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump, cfg_layout_can_merge_blocks_p): Likewise. * ifcvt.c (find_if_case_1, find_if_case_2): Likewise. * passes.c (rest_of_compilation): Update comments for calling optimization that partitions hot/cold basic blocks. * doc/invoke.texi: Update documentation of freorder-blocks-and-partition flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86570 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r--gcc/cfgbuild.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index cb451efe4f2..6c4a67ac572 100644
--- a/gcc/cfgbuild.c
+++ b/gcc/cfgbuild.c
@@ -232,7 +232,10 @@ make_edges (basic_block min, basic_block max, int update_p)
current_function_has_computed_jump = 0;
/* If we are partitioning hot and cold basic blocks into separate
- sections, we cannot assume there is no computed jump. */
+ sections, we cannot assume there is no computed jump (partitioning
+ sometimes requires the use of indirect jumps; see comments about
+ partitioning at the top of bb-reorder.c:partition_hot_cold_basic_blocks
+ for complete details). */
if (flag_reorder_blocks_and_partition)
current_function_has_computed_jump = 1;