This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIMPLE: A language-independent tree IR

On Jan  2, 2002, Diego Novillo <> wrote:

>      1	 x = a OP b
>      2	*a = b OP c
>      3	 x = OP c
>      4	*a = x
>      5	*a = f(args)
>      6	*a = *c
>      7	*a = (cast)b
>      8	*a = &x
>      9	 x = y
>     10	 x = &y
>     11	 x = *c
>     12	 x = f(args)
>     13   x = (cast)b
>     14	 f(args)

To me, this doesn't look too different from RTL.  The only important
difference appears to be the fact that arguments to function calls are
explicitly listed.  I fail to see the advantage of such an IR over a
machine-independent RTL, as previously suggested by Jeff Law.  In
fact, I fail to see the advantage of using this as a tree
representation: with such basic statement and expression types, it
appears to me that you lose any benefit you might have from using
trees, and sticking to a machine-independent RTL would be just the

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]