[tree-ssa] reaching def. question

Diego Novillo dnovillo@redhat.com
Tue Mar 16 23:18:00 GMT 2004


On Tue, 2004-03-16 at 18:06, Richard Henderson wrote:

> On Tue, Mar 16, 2004 at 02:30:35PM -0800, Devang Patel wrote:
> >   #   VUSE <A_24>;
> >   T.0_26 = if (1)
> >     {
> >       A[i_22];
> >     }
> >   else
> >     {
> >       T.0_26
> >     };
> 
> This isn't GIMPLE.  The operands to the if need to be is_gimple_val,
> not is_gimple_rhs.  You need to introduce a temporary.
> 
Oh, right.  Devang, when you create COND_EXPRs, make sure you either (a)
call the gimplifier to request is_gimple_val, or (b) gimplify the
operands yourself before building it.  In this case, (b) is probably
just as easy.


Diego.



More information about the Gcc mailing list