diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-03-14 17:43:01 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-14 17:43:01 +0000 |
commit | a6ee1a15322bd2acadcd49c9e2aa315f32803de5 (patch) | |
tree | 7a6695b3b563544db8a32ee9bf5feb671e54c6b0 /gcc/cfg.c | |
parent | 8eaa0f34a3387db91dd66466d201930e83332300 (diff) | |
download | gcc-a6ee1a15322bd2acadcd49c9e2aa315f32803de5.zip gcc-a6ee1a15322bd2acadcd49c9e2aa315f32803de5.tar.gz gcc-a6ee1a15322bd2acadcd49c9e2aa315f32803de5.tar.bz2 |
basic-block.h: Update the prototypes of cached_make_edge and rtl_make_eh_edge.
* 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.
From-SVN: r96440
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |