]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-data-ref.c (subscript_dependence_tester_1): Call free_conflict_function.
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 16 Jan 2008 13:16:50 +0000 (13:16 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 16 Jan 2008 13:16:50 +0000 (13:16 +0000)
2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>

* tree-data-ref.c (subscript_dependence_tester_1): Call
free_conflict_function.
(compute_self_dependence): Same.

From-SVN: r131571

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

index 510e56b1532f01cbbecbe2ae6a64b434420933a2..82edafa4ba8af438c251803b54de85ccfc5da4b0 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * tree-data-ref.c (subscript_dependence_tester_1): Call 
+       free_conflict_function.
+       (compute_self_dependence): Same.
+
 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
 
        PR debug/34249
index e4ac89a67b0748b6ebb25bded7dfdcc39c6134bb..1fe7c0a46831f539a0b3bf09c7bd9309753103a9 100644 (file)
@@ -3205,6 +3205,11 @@ subscript_dependence_tester_1 (struct data_dependence_relation *ddr,
 
       else
        {
+         if (SUB_CONFLICTS_IN_A (subscript))
+           free_conflict_function (SUB_CONFLICTS_IN_A (subscript));
+         if (SUB_CONFLICTS_IN_B (subscript))
+           free_conflict_function (SUB_CONFLICTS_IN_B (subscript));
+
          SUB_CONFLICTS_IN_A (subscript) = overlaps_a;
          SUB_CONFLICTS_IN_B (subscript) = overlaps_b;
          SUB_LAST_CONFLICT (subscript) = last_conflicts;
@@ -3896,11 +3901,16 @@ compute_self_dependence (struct data_dependence_relation *ddr)
   for (i = 0; VEC_iterate (subscript_p, DDR_SUBSCRIPTS (ddr), i, subscript);
        i++)
     {
+      if (SUB_CONFLICTS_IN_A (subscript))
+       free_conflict_function (SUB_CONFLICTS_IN_A (subscript));
+      if (SUB_CONFLICTS_IN_B (subscript))
+       free_conflict_function (SUB_CONFLICTS_IN_B (subscript));
+
       /* The accessed index overlaps for each iteration.  */
       SUB_CONFLICTS_IN_A (subscript)
-             = conflict_fn (1, affine_fn_cst (integer_zero_node));
+       = conflict_fn (1, affine_fn_cst (integer_zero_node));
       SUB_CONFLICTS_IN_B (subscript)
-             = conflict_fn (1, affine_fn_cst (integer_zero_node));
+       = conflict_fn (1, affine_fn_cst (integer_zero_node));
       SUB_LAST_CONFLICT (subscript) = chrec_dont_know;
     }