Re: Dealing with basic blocks

2010-09-14 Thread Paulo J. Matos
Richard Guenther writes: > On Tue, Sep 14, 2010 at 11:08 AM, Paulo J. Matos wrote: >> >> Hello all, >> >> I am moving basic blocks around and currently the cfg is getting very, >> very awkward. My guess is that I am doing something I shouldn't [as >> usual]. >> >> For each SWITCH_EXPR I found on

Re: Dealing with basic blocks

2010-09-14 Thread Richard Guenther
On Tue, Sep 14, 2010 at 11:08 AM, Paulo J. Matos wrote: > > Hello all, > > I am moving basic blocks around and currently the cfg is getting very, > very awkward. My guess is that I am doing something I shouldn't [as > usual]. > > For each SWITCH_EXPR I found on the code I generate a CFG which I ha

Dealing with basic blocks

2010-09-14 Thread Paulo J. Matos
Hello all, I am moving basic blocks around and currently the cfg is getting very, very awkward. My guess is that I am doing something I shouldn't [as usual]. For each SWITCH_EXPR I found on the code I generate a CFG which I have to replace with the SWITCH_EXPR. The switch is always the last stat