public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Suggestion for alias.c in 4.1
@ 2004-11-25 20:59 Richard Kenner
  0 siblings, 0 replies; only message in thread
From: Richard Kenner @ 2004-11-25 20:59 UTC (permalink / raw)
  To: gcc

This is motivated by the ongoing discussion with Diego, but probably has to
wait for 4.1 at this point.

alias.c has routines that compute the dependence between two pieces of
RTL.  They use flags (volatile, readonly, etc), MEM_EXPR, and alias
sets to make that determination.  There should be similar routines for
tree "references", by which I mean a GIMPLE lhs: a _DECL, an INDIRECT_REF
or a chain of _REFs leading to one of them.  These would know about
global vs. local objects, look at the flags, and consult the alias sets.

I see pieces of these routines in various places in the optimizers, but I
think it would be best if they were centralized in a place where there are
already similar functions.

We could also move safe_from_p into there since it's essentially computing
the dependence between a piece of RTL and a tree.

Thoughts?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-25 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-25 20:59 Suggestion for alias.c in 4.1 Richard Kenner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).