This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Improve aliasing and optimizing constant stringreads (again)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]