This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Make loop optimizer happy about redirected loop exits


On Sat, Jul 14, 2001 at 09:02:40PM +0200, Jan Hubicka wrote:
> !   /* In case the basic block is followed by LOOP_END or BLOCK_END note, we want
> !      the new basic block appear after that one, as it is no longer member of loop
> !      or syntactic block.  */

Mind the line wrap.

> !   new_bb->end = new_bb->head = PREV_INSN (BASIC_BLOCK (e->src->index + 1)->head);

Don't you need to check for e->src->index == n_basic_block-1 ?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]