diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-20 05:02:28 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-20 05:02:28 +0000 |
commit | 735538716d00c4a2ba60e3257d7c3092948a5c88 (patch) | |
tree | adcd8f1cb11423dfef36a3d69e2b7f39b0f21c01 /gcc/basic-block.h | |
parent | 2d59754f6a83fcfb57baba3ebeefaab2a96a5e78 (diff) | |
download | gcc-735538716d00c4a2ba60e3257d7c3092948a5c88.zip gcc-735538716d00c4a2ba60e3257d7c3092948a5c88.tar.gz gcc-735538716d00c4a2ba60e3257d7c3092948a5c88.tar.bz2 |
basic-block.h (edge_def): Add dest_idx.
* basic-block.h (edge_def): Add dest_idx.
* cfg.c (unchecked_make_edge): Initialize dest_idx.
(remove_edge): Simplify the disconnection of an edge from its
destination.
(redirect_edge_succ): Likewise.
* cfghooks.c (verify_flow_info): Check the consistency of
dest_idx for each edge.
From-SVN: r90958
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index a8db432..69fc0ab 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -154,6 +154,10 @@ struct edge_def GTY(()) int probability; /* biased by REG_BR_PROB_BASE */ gcov_type count; /* Expected number of executions calculated in profile.c */ + + /* The index number corresponding to this edge in the edge vector + dest->preds. */ + unsigned int dest_idx; }; typedef struct edge_def *edge; |