[tree-ssa] Merge status 2004-05-03
Diego Novillo
dnovillo@redhat.com
Fri May 7 21:44:00 GMT 2004
On Fri, 2004-05-07 at 17:10, Andrew Haley wrote:
> (y = y * 3) * (y = (y = y * 4) + (y = y * 5))
>
> into (here we go)
>
> y = y * 3;
> tmp1 = y;
> y = y * 4;
> tmp2 = y;
> y = y * 5;
> y = tmp2 + y;
> y = tmp1 * y;
>
> So, is there a reasonably easy way to generate single-use temporaries
> while gimplifying? Then it's pretty easy.
>
Yes, you could use is_gimple_tmp_var as your predicate for
gimplify_expr. I *think* that should get what you are looking for. I'm
not really concerned about the additional temporaries that may be
created.
Diego.
More information about the Gcc
mailing list