This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO] Flattening memory expressions?
- From: Richard Henderson <rth at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 8 Jun 2006 13:36:22 -0700
- Subject: Re: [LTO] Flattening memory expressions?
- References: <44884CBE.9030309@redhat.com>
On Thu, Jun 08, 2006 at 12:13:50PM -0400, Diego Novillo wrote:
> However, as Kenny pointed out today, it may be useful for us to
> completely simplify these expressions to remove their recursive
> structure. Something like:
>
> ARRAY_REF : ID [ VAL ]
>
> COMPONENT_REF : ID . ID
> | INDIRECT_REF . ID
>
> INDIRECT_REF : * ID
>
> We would probably need INDIRECT_REFs in COMPONENT_REF nodes to avoid
> lots of memory copying.
As folks have pointed out down-thread wrt multi-dimensional arrays,
I think this is a rather poor idea. Both for components and arrays.
> The rationale is that by removing the recursiveness of these
> expressions, it would make it easier to emit the LTO bytecodes without
> resorting to a stack machine.
There are other options for this besides stack machine.
r~