[tree-ssa] 'out_of_ssa_tag' question

Devang Patel dpatel@apple.com
Wed Dec 31 21:35:00 GMT 2003


On Dec 31, 2003, at 8:19 AM, Diego Novillo wrote:

>> OR am I taking wrong path by going in and out of SSA form for this 
>> loop
>> transformation? Is it better to take care of SSA vars and phi nodes
>> while copying loop body ?
>>
> Well, it does seem a bit heavy handed.  Maybe a better alternative 
> would
> be to just mark the affected variables for renaming.  So, you duplicate
> the loop, insert all the variables referenced in the loop in the
> vars_to_rename bitmap, and then call rewrite_into_ssa.

One problem with this approach is that candidate variable is referenced
in two loops and we want to rename only one. OR we want to inform ssa
renaming pass that they are different vars with same name.

I couldn't figure out, from the code,
1) how to do it OR 2) it does not matter.

Thanks,
--
Devang



More information about the Gcc mailing list