[cfg-branch] bb-reoder fix
Josef Zlomek
zlomj9am@artax.karlin.mff.cuni.cz
Fri Mar 15 02:06:00 GMT 2002
Hi,
this patch makes sure that we don't rotate a loop whose first basic block is bb 0.
Bootstrapped on i386.
Joe
Fri Mar 15 11:03:36 CET 2002 Josef Zlomek <zlomek@matfyz.cz>
* bb-reorder.c (find_traces_1_round): Don't rotate loop
whose first bb is bb 0.
*** gcc-old/gcc/bb-reorder.c Sat Mar 2 08:52:46 2002
--- gcc-new/gcc/bb-reorder.c Fri Mar 15 09:20:13 2002
*************** find_traces_1_round (branch_th, exec_th,
*** 336,342 ****
else if (RBI (best_edge->dest)->visited == *n_traces)
/* BEST_EDGE->DEST is in current trace. */
{
! if (bb != best_edge->dest)
{
edge e;
--- 336,342 ----
else if (RBI (best_edge->dest)->visited == *n_traces)
/* BEST_EDGE->DEST is in current trace. */
{
! if (best_edge->dest != bb && best_edge->dest->index != 0)
{
edge e;
More information about the Gcc-patches
mailing list