]> gcc.gnu.org Git - gcc.git/commitdiff
bb-reorder.c (find_traces_1_round): Use succ block frequency instead of edge frequenc...
authorPat Haugen <pthaugen@us.ibm.com>
Fri, 17 Jun 2005 21:42:08 +0000 (21:42 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 17 Jun 2005 21:42:08 +0000 (17:42 -0400)
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.

From-SVN: r101138

gcc/ChangeLog
gcc/bb-reorder.c

index e20b9925b5620df5365bc1499576a2789b475c79..48e546ceef5daaece801a6d48f9cf525755d4bfc 100644 (file)
@@ -1,3 +1,8 @@
+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
index 2266ce50f5e00eb7f2347577ea49fc532e8fb805..185da151cd9a7fc7b39fadf3b3c3ddcee410d296 100644 (file)
@@ -504,7 +504,7 @@ find_traces_1_round (int branch_th, int exec_th, gcov_type count_th,
                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.  */
@@ -522,7 +522,8 @@ find_traces_1_round (int branch_th, int exec_th, gcov_type count_th,
              /* 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
This page took 0.080481 seconds and 5 git commands to generate.