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~