This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make loop optimizer happy about redirected loop exits
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Make loop optimizer happy about redirected loop exits
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 14 Jul 2001 15:35:19 -0700
- Cc: patches at x86-64 dot org, gcc-patches at gcc dot gnu dot org
- References: <20010714210240.A32588@atrey.karlin.mff.cuni.cz>
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~