This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inserting statements in tree-ssa form
- From: Diego Novillo <dnovillo at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Mihai Burcea <burceam at eecg dot toronto dot edu>
- Date: Wed, 26 Oct 2005 15:59:37 -0400
- Subject: Re: Inserting statements in tree-ssa form
- References: <20051026183423.GU23823@orange.eecg>
On Wednesday 26 October 2005 14:34, Mihai Burcea wrote:
> I have my own pass that is trying to insert some statements in the code;
> the statements would be of the form var_name = constant_value;
>
After you create the variables with create_tmp_var, you mark them to be
rewritten by adding them to vars_to_rename. See the section 'Preserving
SSA form' in the internals documentation. For examples on how this work
you can browse tree-ssa-pre.c, which inserts new code and does some of the
things you're trying to do.