This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cfg-branch] bb-reoder fix
- From: Jan Hubicka <jh at suse dot cz>
- To: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- Cc: 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 12:33:23 +0100
- Subject: Re: [cfg-branch] bb-reoder fix
- References: <20020315100612.GA27581@artax.karlin.mff.cuni.cz>
> Hi,
>
> this patch makes sure that we don't rotate a loop whose first basic block is bb 0.
>
> Bootstrapped on i386.
Installed, thanks
>
> 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;
>