2005-06-13 Pat Haugen * bb-reorder.c (find_traces_1_round): Use succ block frequency instead of edge frequency. Index: bb-reorder.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/bb-reorder.c,v retrieving revision 1.104 diff -c -3 -p -r1.104 bb-reorder.c *** bb-reorder.c 1 Jun 2005 02:50:51 -0000 1.104 --- bb-reorder.c 13 Jun 2005 18:31:41 -0000 *************** find_traces_1_round (int branch_th, int *** 504,510 **** continue; prob = e->probability; ! freq = EDGE_FREQUENCY (e); /* The only sensible preference for a call instruction is the fallthru edge. Don't bother selecting anything else. */ --- 504,510 ---- continue; prob = e->probability; ! freq = e->dest->frequency; /* The only sensible preference for a call instruction is the fallthru edge. Don't bother selecting anything else. */ *************** find_traces_1_round (int branch_th, int *** 576,582 **** fibheap_t which_heap = *heap; prob = e->probability; ! freq = EDGE_FREQUENCY (e); if (!(e->flags & EDGE_CAN_FALLTHRU) || (e->flags & EDGE_COMPLEX) --- 576,582 ---- fibheap_t which_heap = *heap; prob = e->probability; ! freq = e->dest->frequency; if (!(e->flags & EDGE_CAN_FALLTHRU) || (e->flags & EDGE_COMPLEX)