This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa]: out-of-ssa breaks if something adds a pred
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Chris Lattner <sabre at nondot dot org>,gcc mailing list <gcc at gcc dot gnu dot org>,Diego Novillo <dnovillo at redhat dot com>
- Date: 06 Jun 2003 16:13:57 -0400
- Subject: Re: [tree-ssa]: out-of-ssa breaks if something adds a pred
- References: <AAD74168-985A-11D7-9DAE-000A95A34564@dberlin.org>
On Fri, 2003-06-06 at 16:08, Daniel Berlin wrote:
>
> Plus, the current way we create phi nodes would mean that we'd have to
> rebuild all the phi's (their number of arguments is fixed at creation
> time).
> Diego, what to do here?
>
We change them all the time..
add_phi_arg
remove_phi_arg
in tree-dfa.c
If there is a problem at some point where it can't be grown any more,
then you'll haev to fix the routine to grow the array and copy it. AT
least its a single entry point for handling it.
Andrew