This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH][RFC][4.4] Add may-alias oracle, make SCCVN use it
On Thu, 6 Dec 2007, Eric Botcazou wrote:
> > the two references i and i have !refs_must_alias_p relationship,
> > while alias_sets_must_conflict_p returns true here. One could use
> > alias_sets_must_conflict_p as "early out" if that returns false, but
> > otherwise I don't see how this helps here.
> Yes, that's what I was thinking of, like in refs_may_alias_p.
Actually thinking about it we can only do
refs_must_conflict_p (tree ref1, tree ref2)
if (!alias_sets_conflict_p (get_alias_set (ref1), get_alias_set (ref2)))
return operand_equal_p (ref1, ref2);
that is, we have to use may-alias for the early out. But I doubt this
makes the function any cheaper - in fact I think it makes it more