This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cfg-branch] bb-reoder fix
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-pdo at atrey dot karlin dot mff dot cuni dot cz, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Mar 2002 11:06:13 +0100
- Subject: [cfg-branch] bb-reoder fix
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;