[tree-ssa]: Dominator opts change LHS without changing VDEF's

Diego Novillo dnovillo@redhat.com
Sun Aug 10 22:57:00 GMT 2003


On Sun, 2003-08-10 at 17:31, Daniel Berlin wrote:

> > bitmap_element_free (struct bitmap_element *elt)
> > {
> > ....
> >   {
> >      struct bitmap_element * elt;
> >      struct bitmap_head_def * head;
> >
> >      head = head;
> >      elt = elt;			<-- Here 'elt' points to 'elt'.
> 
> No, this statement means elt (lhs) points to whatever elt (rhs) points to.
> elt doesn't point to elt.
>
Ah, yes.  I see the distinction now.  To fix this, you need to change
the query we do in tree-dfa.c:get_memory_tag_for.  Currently, we only
ask whether the pointer may point to the variable.  Is there a query
that we can do to ask 'whether this pointer points to the same memory
pointed by this other pointer?'.  That's the query we are missing.

Both LHS elt and RHS elt *must* have the same memory tag.  If we can
query that to PTA, then it should be trivial to fix.


Diego.



More information about the Gcc mailing list