[PATCH]: MEM_REF

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Wed May 18 15:28:00 GMT 2005


Hello,

> On Tue, May 17, 2005 at 01:42:01AM +0200, Zdenek Dvorak wrote:
> > The purposes of the nodes are really quite different, and
> > TARGET_MEM_REFs as implemented now satisfy some invariants useful
> > mostly in the very late tree optimizations.  In particular
> > TARGET_MEM_REF is never nested with other memory reference nodes (like
> > COMPONENT_REFs or ARRAY_REFs) -- it just represents the flat access to
> > memory, mapping directly to MEM node on rtl.
> 
> I don't recall if Diego got around to mentioning this, but I think
> that the lack of COMPONENT_REFs in TARGET_MEM_REF means problems 
> for the alias analysis.  I'd been thinking that the slot you use for
> the DECL should be extended to any base-ref-able thing.

speaking about TARGET_MEM_REFs, could someone please have a look at that
patch?  The newest version (with remarks from Richard and Diego
addressed) is at
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00059.html.  It is one of
the prerequisite patches (maybe the most important one) for the old loop
optimizer removal, and I would like to be able to proceed with it.

Thanks,

Zdenek



More information about the Gcc-patches mailing list