flow.c (sbitmap_union_of_successors): New function.

* flow.c (sbitmap_union_of_successors):  New function.
        * basic-block.h (sbitmap_union_of_successors): Declare it.
For completeness, we already had the other 3 variants.  This one
is useful for backwards lazy code motion.

From-SVN: r19232
This commit is contained in:
Jeffrey A Law 1998-04-15 14:33:54 +00:00 committed by Jeff Law
parent 2414de7158
commit 5e89e58b55
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Apr 15 15:31:34 1998 Jeffrey A Law (law@cygnus.com)
* flow.c (sbitmap_union_of_successors): New function.
* basic-block.h (sbitmap_union_of_successors): Declare it.
Wed Apr 15 12:38:03 1998 Jim Wilson <wilson@cygnus.com> Wed Apr 15 12:38:03 1998 Jim Wilson <wilson@cygnus.com>
* configure.in (gnu_ld): Rename to gnu_ld_flag before main loop. * configure.in (gnu_ld): Rename to gnu_ld_flag before main loop.

View File

@ -256,3 +256,5 @@ extern void sbitmap_intersect_of_successors PROTO ((sbitmap, sbitmap *, int,
int_list_ptr *)); int_list_ptr *));
extern void sbitmap_union_of_predecessors PROTO ((sbitmap, sbitmap *, int, extern void sbitmap_union_of_predecessors PROTO ((sbitmap, sbitmap *, int,
int_list_ptr *)); int_list_ptr *));
extern void sbitmap_union_of_successors PROTO ((sbitmap, sbitmap *, int,
int_list_ptr *));

View File

@ -3862,6 +3862,19 @@ sbitmap_union_of_predecessors (dst, src, bb, s_preds)
sbitmap_union_of_predsucc (dst, src, bb, s_preds); sbitmap_union_of_predsucc (dst, src, bb, s_preds);
} }
/* Set the bitmap DST to the union of SRC of all predecessors of
block number BB. */
void
sbitmap_union_of_successors (dst, src, bb, s_succ)
sbitmap dst;
sbitmap *src;
int bb;
int_list_ptr *s_succ;
{
sbitmap_union_of_predsucc (dst, src, bb, s_succ);
}
/* Compute dominator relationships. */ /* Compute dominator relationships. */
void void
compute_dominators (dominators, post_dominators, s_preds, s_succs) compute_dominators (dominators, post_dominators, s_preds, s_succs)