[LLVMdev] Critical edges

Fernando Magno Quintao Pereira fernando at CS.UCLA.EDU
Sun Jul 9 10:58:18 PDT 2006


Thank you, Tanya. It solved the problem! Thanks a lot.

Fernando

>
> The problem is that you are inserting block 9 in the wrong spot.
> mf.getLastBlock() returns the block with the greatest number which may
> have nothing to do with the ordering. Why not use the end iterator
> (mf.end) to insert?
>
> -Tanya
>
> On Sat, 8 Jul 2006, Fernando Magno Quintao Pereira wrote:
>
> >
> > Dear guys,
> >
> >    I am having problem to split edges correctly. Mostly because the new
> > basic blocks are creating infinite loops. Could someone help me fixing the
> > code below? It is creating assembly like this one below. Block LBB1_9 was
> > inserted to break the critical edge between blocks LBB1_3 and LBB1_8. But
> > it changes the semantics of the original program, because, before, LBB1_8
> > was falling through LBB1_4, and now it is falling on LBB1_9.




More information about the llvm-dev mailing list