tree-data-ref.c (initialize_data_dependence_relation): Update
authorRazya Ladelsky <razya@il.ibm.com>
Thu, 24 Nov 2011 14:07:36 +0000 (14:07 +0000)
committerRazya Ladelsky <razya@gcc.gnu.org>
Thu, 24 Nov 2011 14:07:36 +0000 (14:07 +0000)
        * tree-data-ref.c (initialize_data_dependence_relation): Update
        * comment for the
        self dependence case.
        (compute_self_dependence): Remove.
        * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
        compute_self_dependenc.

From-SVN: r181691

gcc/ChangeLog
gcc/tree-data-ref.c
gcc/tree-vect-data-refs.c

index 6787a7c141d899d6f0fffb71de78815fc32faf09..290d54efd270e8d8610213e94ac9d44847814c34 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-24  Razya Ladelsky  <razya@il.ibm.com>
+
+       * tree-data-ref.c (initialize_data_dependence_relation): Update 
+       comment for the self dependence case.
+       (compute_self_dependence): Remove.
+       * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to 
+       compute_self_dependenc. 
 2011-11-24  Alan Modra  <amodra@gmail.com>
 
        * c-decl.c (warn_if_shadowing): Don't warn if shadowed
index 565bf57b7522b150e6b0b5ad8466a4c188eba360..a0d86ec9c117572dbcbe73df4e9250ebbe56df5d 100644 (file)
@@ -1385,8 +1385,7 @@ initialize_data_dependence_relation (struct data_reference *a,
       return res;
     }
 
-  /* When the references are exactly the same, don't spend time doing
-     the data dependence tests, just initialize the ddr and return.  */
+  /* The case where the references are exactly the same.  */
   if (operand_equal_p (DR_REF (a), DR_REF (b), 0))
     {
      if (loop_nest
@@ -4132,19 +4131,6 @@ compute_affine_dependence (struct data_dependence_relation *ddr,
     fprintf (dump_file, ")\n");
 }
 
-/* This computes the dependence relation for the same data
-   reference into DDR.  */
-
-void
-compute_self_dependence (struct data_dependence_relation *ddr)
-{
-  if (DDR_ARE_DEPENDENT (ddr) != NULL_TREE)
-    return;
-
-  if (DDR_LOOP_NEST (ddr))
-    compute_affine_dependence (ddr, VEC_index (loop_p, DDR_LOOP_NEST (ddr), 0));
-}
-
 /* Compute in DEPENDENCE_RELATIONS the data dependence graph for all
    the data references in DATAREFS, in the LOOP_NEST.  When
    COMPUTE_SELF_AND_RR is FALSE, don't compute read-read and self
index 0ff8ee83d40a371a742fddae8a7109da41d2c1b5..8111bdc61ac5a700b6a456902cf012ff4fba39e2 100644 (file)
@@ -3122,7 +3122,6 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo,
          ddr = VEC_index (ddr_p, ddrs, k);
          gcc_assert (DDR_A (ddr) == olddr && DDR_B (ddr) == olddr);
          newddr = initialize_data_dependence_relation (dr, dr, nest);
-         compute_self_dependence (newddr);
          VEC_replace (ddr_p, ddrs, k, newddr);
          free_dependence_relation (ddr);
          VEC_replace (data_reference_p, datarefs, i, dr);