This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Improve aliasing and optimizing constant stringreads (again)
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Aug 2003 19:52:22 -0400
- Subject: Re: [tree-ssa] Improve aliasing and optimizing constant stringreads (again)
- Organization: Red Hat Canada
- References: <200308222326.h7MNQ68G008547@speedy.slc.redhat.com>
On Fri, 2003-08-22 at 19:26, law@redhat.com wrote:
> *** 1921,1926 ****
> --- 1921,1930 ----
> if (!mem_ann->is_stored && !v_ann->is_stored)
> continue;
>
> + /* Skip memory tags which are written if the variable is readonly. */
> + if (mem_ann->is_stored && TREE_READONLY (var->var))
> + continue;
> +
> if (may_alias_p (ptr->var, ptr->set, var->var, var->set))
> {
> /* If MEM has less than 5 aliases in its alias set, add
>
Heh, coincidentally I have a similar change, but I didn't check for
mem_ann->is_stored. Did you find that necessary for something
specific? My bootstrap is still going, so I haven't hit any nasties
yet.
Diego.