This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] 'out_of_ssa_tag' question



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]