This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] 'out_of_ssa_tag' question
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Devang Patel <dpatel at apple dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Wed, 31 Dec 2003 11:19:21 -0500
- Subject: Re: [tree-ssa] 'out_of_ssa_tag' question
- Organization: Red Hat Canada
- References: <591F9E91-3B2D-11D8-9B65-000393A91CAA@apple.com>
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.