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