On Wed, Sep 15, 2010 at 3:23 PM, Paulo J. Matos <pocma...@gmail.com> wrote:
> pocma...@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.

Reply via email to