diff options
author | Sebastian Pop <pop@cri.ensmp.fr> | 2006-04-02 06:08:02 +0200 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2006-04-02 04:08:02 +0000 |
commit | a84481aacbf798637896bf82b7992872421691e1 (patch) | |
tree | f29d76be475ce654b0a86c4204e7992cb7e617b6 | |
parent | d568d1a8515e22770a62ff905cc3e42737dd7c7a (diff) | |
download | gcc-a84481aacbf798637896bf82b7992872421691e1.zip gcc-a84481aacbf798637896bf82b7992872421691e1.tar.gz gcc-a84481aacbf798637896bf82b7992872421691e1.tar.bz2 |
tree-data-ref.c (compute_all_dependences): Use a pointer to the dependence_relations vector.
* tree-data-ref.c (compute_all_dependences): Use a pointer to
the dependence_relations vector.
(compute_data_dependences_for_loop): Adjust call to
compute_all_dependences.
From-SVN: r112620
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-data-ref.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 24a065f..ee49a27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-04-02 Sebastian Pop <pop@cri.ensmp.fr> + + * tree-data-ref.c (compute_all_dependences): Use a pointer to + the dependence_relations vector. + (compute_data_dependences_for_loop): Adjust call to + compute_all_dependences. + 2006-04-01 Roger Sayle <roger@eyesopen.com> Richard Henderson <rth@redhat.com> diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index dd9e4d6..8b1c4f1 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -3933,7 +3933,7 @@ compute_self_dependence (struct data_dependence_relation *ddr) static void compute_all_dependences (VEC (data_reference_p, heap) *datarefs, - VEC (ddr_p, heap) *dependence_relations, + VEC (ddr_p, heap) **dependence_relations, VEC (loop_p, heap) *loop_nest, bool compute_self_and_rr) { @@ -3946,7 +3946,7 @@ compute_all_dependences (VEC (data_reference_p, heap) *datarefs, if (!DR_IS_READ (a) || !DR_IS_READ (b) || compute_self_and_rr) { ddr = initialize_data_dependence_relation (a, b, loop_nest); - VEC_safe_push (ddr_p, heap, dependence_relations, ddr); + VEC_safe_push (ddr_p, heap, *dependence_relations, ddr); compute_affine_dependence (ddr); } @@ -3954,7 +3954,7 @@ compute_all_dependences (VEC (data_reference_p, heap) *datarefs, for (i = 0; VEC_iterate (data_reference_p, datarefs, i, a); i++) { ddr = initialize_data_dependence_relation (a, a, loop_nest); - VEC_safe_push (ddr_p, heap, dependence_relations, ddr); + VEC_safe_push (ddr_p, heap, *dependence_relations, ddr); compute_self_dependence (ddr); } } @@ -4172,7 +4172,7 @@ compute_data_dependences_for_loop (struct loop *loop, VEC_safe_push (ddr_p, heap, *dependence_relations, ddr); } else - compute_all_dependences (*datarefs, *dependence_relations, vloops, + compute_all_dependences (*datarefs, dependence_relations, vloops, compute_self_and_read_read_dependences); if (dump_file && (dump_flags & TDF_STATS)) |