+2005-06-17 Pat Haugen <pthaugen@us.ibm.com>
+
+ * bb-reorder.c (find_traces_1_round): Use succ block frequency
+ instead of edge frequency for calls to better_edge_p.
+
2005-06-17 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22105
continue;
prob = e->probability;
- freq = EDGE_FREQUENCY (e);
+ freq = e->dest->frequency;
/* The only sensible preference for a call instruction is the
fallthru edge. Don't bother selecting anything else. */
/* Edge that cannot be fallthru or improbable or infrequent
successor (i.e. it is unsuitable successor). */
if (!(e->flags & EDGE_CAN_FALLTHRU) || (e->flags & EDGE_COMPLEX)
- || prob < branch_th || freq < exec_th || e->count < count_th)
+ || prob < branch_th || EDGE_FREQUENCY (e) < exec_th
+ || e->count < count_th)
continue;
/* If partitioning hot/cold basic blocks, don't consider edges