diff options
author | Jeff Law <law@redhat.com> | 2004-11-17 14:10:00 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2004-11-17 14:10:00 -0700 |
commit | d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6 (patch) | |
tree | da3118a0605edeaeaf002f07f16b80921e72497e /gcc/tree.c | |
parent | 730bddf26ca4e5222b4130535b6bc705943f5d8b (diff) | |
download | gcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.zip gcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.tar.gz gcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.tar.bz2 |
tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
* tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
(edge_to_cases_elt): Renamed from edge_to_case_leader.
(edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
(edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
(edge_to_cases_cleanup, recording_case_labels_p): New functions.
(get_cases_for_edge): New function.
(start_recording_case_labels, end_recording_case_labels): Similarly.
(record_switch_edge): Don't muck with the CASE_LABEL. Instead
chain equivalent CASE_LABEL_EXPRs together.
(get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
(make_switch_expr_edges): Do not record edge/cases here.
(cleanup_tree_cfg): Record cases around the call to thread_jumps.
(split_critical_edges): Record cases around the edge splitting code.
(cleanup_dead_labels): Use CASE_LABEL again.
(tree_redirect_edge_and_branch): If we have a mapping from edge
to cases, use it to handle redirections. Else do it the slow way.
* tree.h (CASE_LEADER_OR_LABEL): Kill.
(CASE_LABEL): Revert to just looking at the tree's second operand.
* tree.c (get_case_label): Kill.
From-SVN: r90817
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -6061,19 +6061,6 @@ signed_type_for (tree type) return lang_hooks.types.signed_type (type); } -/* Return the LABEL_DECL associated with T, which must be a - CASE_LABEL_EXPR. This will walk through any CASE_LABEL_EXPRs - appearing in operand 2 until it finds a CASE_LABEL_EXPR with - a LABEL_DECL in operand 2. */ - -tree -get_case_label (tree t) -{ - while (TREE_CODE (CASE_LEADER_OR_LABEL (t)) == CASE_LABEL_EXPR) - t = CASE_LEADER_OR_LABEL (t); - return CASE_LEADER_OR_LABEL (t); -} - /* Returns the largest value obtainable by casting something in INNER type to OUTER type. */ |