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 Tue, 2003-12-30 at 20:04, Devang Patel wrote:

> How do I clear 'out_of_ssa_tag' for all vars?
>
for (i = 0; i < num_referenced_vars; i++)
  var_ann (referenced_var (i))->out_of_ssa_tag = 0;

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


Diego.


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