diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-14 17:43:01 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-14 17:43:01 +0000 |
commit | 841999efe1040aa4fc103f7de429b63caa3941b4 (patch) | |
tree | 7a6695b3b563544db8a32ee9bf5feb671e54c6b0 /gcc/cfg.c | |
parent | 194899bf706e9b49f15d525fed040ce87a5c869c (diff) | |
download | gcc-841999efe1040aa4fc103f7de429b63caa3941b4.tar.gz |
* basic-block.h: Update the prototypes of cached_make_edge and
rtl_make_eh_edge.
* cfg.c (cached_make_edge): Take edge_cache representing one
row of the adjacency matrix of edges.
* cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
(make_edges): Initialize edge_cache to represent one row of
the adjacency matrix of edges.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c index c4f06642a8a..03f1ee1f9d2 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -327,7 +327,7 @@ unchecked_make_edge (basic_block src, basic_block dst, int flags) edge cache CACHE. Return the new edge, NULL if already exist. */ edge -cached_make_edge (sbitmap *edge_cache, basic_block src, basic_block dst, int flags) +cached_make_edge (sbitmap edge_cache, basic_block src, basic_block dst, int flags) { if (edge_cache == NULL || src == ENTRY_BLOCK_PTR @@ -335,11 +335,11 @@ cached_make_edge (sbitmap *edge_cache, basic_block src, basic_block dst, int fla return make_edge (src, dst, flags); /* Does the requested edge already exist? */ - if (! TEST_BIT (edge_cache[src->index], dst->index)) + if (! TEST_BIT (edge_cache, dst->index)) { /* The edge does not exist. Create one and update the cache. */ - SET_BIT (edge_cache[src->index], dst->index); + SET_BIT (edge_cache, dst->index); return unchecked_make_edge (src, dst, flags); } |