This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: gimple tuples data structures design
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, gcc at gcc dot gnu dot org, mark at codesourcery dot com, dnovillo at redhat dot com
- Date: Fri, 09 Jun 2006 21:07:43 -0400
- Subject: Re: RFC: gimple tuples data structures design
- References: <20060609215317.GB30842@redhat.com> <448A04FF.5020108@dberlin.org>
On Fri, 2006-06-09 at 19:32 -0400, Daniel Berlin wrote:
> Aldy Hernandez wrote:
> > Hi folks.
> >
> Also, one thing to throw on your todo list about gimple
> temporaries/ssa_names is that a *lot* of places create one var per
> ssa_name for no good reason.
>
> IE
> foo = create_tmp_var (type);
> fooname = make_ssa_name (foo);
>
> This is a waste of time and VAR_DECL's unless type is always different,
> which in most of these cases, it's not.
We could simply make make_ssa_name() smart enough that if we pass it a
type instead of a VAR_DECL that we'll get a canonical tmp variable for
that type. Thats pretty trivial...
Andrew