This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] a tree-ssa beginner question - creating new variables
- From: Dorit Naishlos <DORIT at il dot ibm dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 22 Dec 2003 10:08:20 +0200
- Subject: Re: [tree-ssa] a tree-ssa beginner question - creating new variables
> > what's the correct way to create temp variables ?
> ei->temp = create_tmp_var (TREE_TYPE (ei->expr), "pretmp");
> add_referenced_tmp_var (ei->temp);
>
> Adding it to the referenced vars will set the UID and create the
> annotation for you.
thanks!
dorit