From f007c7151dbfa99c248819bcd6cd0ccd39f1b3d9 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 14 Mar 2005 17:43:01 +0000 Subject: * 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: https://gcc.gnu.org/svn/gcc/trunk@96440 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cfg.c') 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); } -- cgit v1.2.3