cfgloopmanip.c (force_single_succ_latches): Force latch to be different from header.

* cfgloopmanip.c (force_single_succ_latches): Force latch to be
	different from header.

From-SVN: r68965
This commit is contained in:
Zdenek Dvorak 2003-07-05 12:23:33 +02:00 committed by Zdenek Dvorak
parent a8cad3e1dd
commit 977129f68d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfgloopmanip.c (force_single_succ_latches): Force latch to be
different from header.
2003-07-05 Andreas Schwab <schwab@suse.de>
* config/m68k/m68k.c: Remove code protected by CRDS.

View File

@ -1191,7 +1191,8 @@ force_single_succ_latches (struct loops *loops)
for (i = 1; i < loops->num; i++)
{
loop = loops->parray[i];
if (!loop->latch->succ->succ_next)
if (loop->latch != loop->header
&& !loop->latch->succ->succ_next)
continue;
for (e = loop->header->pred; e->src != loop->latch; e = e->pred_next)