flow.c (sbitmap_union_of_successors): New function.
authorJeffrey A Law <law@cygnus.com>
Wed, 15 Apr 1998 14:33:54 +0000 (14:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 15 Apr 1998 14:33:54 +0000 (08:33 -0600)
        * 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

gcc/ChangeLog
gcc/basic-block.h
gcc/flow.c

index 26b7ea88d765fbfceecd23913a43a4c6c06f94ba..4f562bbed409459e6311d3a4f615a44941f3891d 100644 (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>
 
        * configure.in (gnu_ld): Rename to gnu_ld_flag before main loop.
index 68f10ff10904bb241ff1a7d46208d21334832180..01a682e87fc4657af408bf5dba27f318dab9bc51 100644 (file)
@@ -256,3 +256,5 @@ extern void sbitmap_intersect_of_successors PROTO ((sbitmap, sbitmap *, int,
                                                    int_list_ptr *));
 extern void sbitmap_union_of_predecessors PROTO ((sbitmap, sbitmap *, int,
                                                  int_list_ptr *));
+extern void sbitmap_union_of_successors PROTO ((sbitmap, sbitmap *, int,
+                                               int_list_ptr *));
index a304a915d622d7ca9ba26164523ec47e660f9a8e..57940701ac8cd220ffe67b9b77210acf3c5bcc99 100644 (file)
@@ -3862,6 +3862,19 @@ sbitmap_union_of_predecessors (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.  */
 void
 compute_dominators (dominators, post_dominators, s_preds, s_succs)