PHI nodes undefined

Richard Guenther richard.guenther@gmail.com
Wed Sep 15 21:25:00 GMT 2010


On Wed, Sep 15, 2010 at 3:23 PM, Paulo J. Matos <pocmatos@gmail.com> wrote:
> pocmatos@gmail.com (Paulo J. Matos) writes:
>
>> Is there a way I can rebuild PHI nodes info or what's the best way to
>> keep track of this each time I change the CFG by adding/removing edges
>> and adding new basic blocks?
>
> I found out I can avoid the whole issue by scheduling my pass to go just
> before pass_build_ssa, where phi nodes seem to be created.
>
> But it would still be nice to know the answer to the above.

You need to manually maintain SSA form.  You are probably loosing
the original PHI node after the switch when you delete edges.

Richard.



More information about the Gcc mailing list