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: Daniel Berlin <dberlin at dberlin dot org>
- To: Dorit Naishlos <DORIT at il dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org,Diego Novillo <dnovillo at redhat dot com>
- Date: Sun, 21 Dec 2003 15:00:06 -0500
- Subject: Re: [tree-ssa] a tree-ssa beginner question - creating new variables
- References: <OF33AAF817.9987F0C2-ONC2256E03.00621942-C2256E03.00667FCB@il.ibm.com>
On Dec 21, 2003, at 1:39 PM, Dorit Naishlos wrote:
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.