This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] reaching def. question
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.