df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's always the same as...
authorDaniel Berlin <dberlin@dberlin.org>
Tue, 23 Nov 2004 02:57:52 +0000 (02:57 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Tue, 23 Nov 2004 02:57:52 +0000 (02:57 +0000)
2004-11-22  Daniel Berlin  <dberlin@dberlin.org>

* df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
Add comment to function.

From-SVN: r91067

gcc/ChangeLog
gcc/df.c

index 5956745..51bb100 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-22  Daniel Berlin  <dberlin@dberlin.org>
+
+       * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
+       always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
+       Add comment to function.
+
 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR pch/14940
index dd3ab26..1cda8b8 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -3723,10 +3723,13 @@ debug_df_chain (struct df_link *link)
 }
 \f
 
+/* Perform the set operation OP1 OP OP2, using set representation REPR, and
+   storing the result in OP1.  */
+
 static void
 dataflow_set_a_op_b (enum set_representation repr,
                     enum df_confluence_op op,
-                    void *rslt, void *op1, void *op2)
+                    void *op1, void *op2)
 {
   switch (repr)
     {
@@ -3734,11 +3737,11 @@ dataflow_set_a_op_b (enum set_representation repr,
       switch (op)
        {
        case DF_UNION:
-         sbitmap_a_or_b (rslt, op1, op2);
+         sbitmap_a_or_b (op1, op1, op2);
          break;
 
        case DF_INTERSECTION:
-         sbitmap_a_and_b (rslt, op1, op2);
+         sbitmap_a_and_b (op1, op1, op2);
          break;
 
        default:
@@ -3750,11 +3753,11 @@ dataflow_set_a_op_b (enum set_representation repr,
       switch (op)
        {
        case DF_UNION:
-         bitmap_ior (rslt, op1, op2);
+         bitmap_ior_into (op1, op2);
          break;
 
        case DF_INTERSECTION:
-         bitmap_and (rslt, op1, op2);
+         bitmap_and_into (op1, op2);
          break;
 
        default:
@@ -3815,7 +3818,7 @@ hybrid_search (basic_block bb, struct dataflow *dataflow,
            continue;                                                   \
                                                                        \
          dataflow_set_a_op_b (dataflow->repr, dataflow->conf_op,       \
-                              IN_SET[i], IN_SET[i],                    \
+                              IN_SET[i],                               \
                               OUT_SET[e->E_ANTI_BB->index]);           \
        }                                                               \
                                                                        \