[tree-ssa] reaching def. question

Devang Patel dpatel@apple.com
Tue Mar 16 23:20:00 GMT 2004


On Mar 16, 2004, at 3:13 PM, Diego Novillo wrote:

> 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.

OK. I was planning to gimplify condition only.

--
Devang



More information about the Gcc mailing list