This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ICE in build_classic_dist_vector_1 and memory leaks in tree-data-ref (PR tree-optimization/32573, middle-end/32946)
- From: "Sebastian Pop" <sebpop at gmail dot com>
- To: "Jakub Jelinek" <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Aug 2007 07:38:15 -0500
- Subject: Re: [PATCH] Fix ICE in build_classic_dist_vector_1 and memory leaks in tree-data-ref (PR tree-optimization/32573, middle-end/32946)
- References: <20070821151559.GL2063@devserv.devel.redhat.com>
On 8/21/07, Jakub Jelinek <jakub@redhat.com> wrote:
>
> Questionable things I left out:
> 1) shouldn't add_other_self_distances and init_omega_for_ddr_1
> use finalize_ddr_dependence to set DDR_ARE_DEPENDENT?
Yes they should.
> 2) shouldn't build_classic_dir_vector be a nop if DDR_ARE_DEPENDENT (ddr) !=
> NULL? DDR_DIST_VECTS will likely be NULL in that case with this patch
> (wouldn't necessarily be the case otherwise), but anyway.
>
Right. The function build_classic_dist_vector is a nop in that case
too.
The interest in having the representation of direction vectors is that
sometimes it is possible to represent the indication of direction of
the dependence even if the distance cannot be represented, or not
known, as for example in the case of a parametric distance for which
we know that the parameter cannot be negative. But for the moment,
the information that build_classic_dir_vector is producing is not
containing any information that cannot be extracted from the distance
vectors because we only translate the dist vectors to dir vectors.
Furthermore, dir vectors are not used by any other pass. So I would
say that we can even remove all the part that computes and stores the
dir vectors.
> Tested on x86_64-linux, ok for 4.3?
yes, thank you,
Sebastian