This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]