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]

bb-reorder bugfix


Found this while trying to figure out why bb-reorder was ignoring some
predictions I added in predict.c.  We were detecting the same edge as
taken branch and as fallthrough.

Bootstrapped on i686-linux.


Bernd

+ 	* bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
+ 	edge detection.

Index: bb-reorder.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/bb-reorder.c,v
retrieving revision 1.28
diff -c -p -r1.28 bb-reorder.c
*** bb-reorder.c	2001/03/28 11:03:48	1.28
--- bb-reorder.c	2001/07/07 22:44:07
*************** make_reorder_chain_1 (bb, prev)
*** 409,415 ****
  	{
  	  if (e->flags & EDGE_FALLTHRU)
  	    e_fall = e;
! 	  if (! (e->flags & EDGE_EH))
  	    e_taken = e;
  	}

--- 409,415 ----
  	{
  	  if (e->flags & EDGE_FALLTHRU)
  	    e_fall = e;
! 	  else if (! (e->flags & EDGE_EH))
  	    e_taken = e;
  	}



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