summaryrefslogtreecommitdiff
path: root/gcc/cfgbuild.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 17:26:33 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 17:26:33 +0000
commitcd6dccd365b9354fc13cdb1604ff2a71e610072b (patch)
tree01482693087a7300ccd5d02237745f640bf1246e /gcc/cfgbuild.c
parent7e6d57367fa14312ce44831e4e24d7b9a3d712f3 (diff)
downloadgcc-cd6dccd365b9354fc13cdb1604ff2a71e610072b.tar.gz
PR middle-end/16585
* cfgbuild.c (make_edges): Do not clear or set current_function_has_computed_jump. * function.h (struct function): Remove the has_computed_jump field. (current_function_has_computed_jump): Do not define. * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends in a computed jump. Ignore current_function_has_computed_jump. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r--gcc/cfgbuild.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index fdfbccae0c3..7f3e72b9ff5 100644
--- a/gcc/cfgbuild.c
+++ b/gcc/cfgbuild.c
@@ -227,18 +227,6 @@ make_edges (basic_block min, basic_block max, int update_p)
basic_block bb;
sbitmap *edge_cache = NULL;
- /* Assume no computed jump; revise as we create edges. */
- 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 (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;
-
/* Heavy use of computed goto in machine-generated code can lead to
nearly fully-connected CFGs. In that case we spend a significant
amount of time searching the edge lists for duplicates. */
@@ -325,8 +313,6 @@ make_edges (basic_block min, basic_block max, int update_p)
everything on the forced_labels list. */
else if (computed_jump_p (insn))
{
- current_function_has_computed_jump = 1;
-
for (x = forced_labels; x; x = XEXP (x, 1))
make_label_edge (edge_cache, bb, XEXP (x, 0), EDGE_ABNORMAL);
}