]> gcc.gnu.org Git - gcc.git/commitdiff
tree-cfg.c (thread_jumps_from_bb): Speed up by extracting edge information when...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 22 Oct 2004 17:59:50 +0000 (17:59 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 22 Oct 2004 17:59:50 +0000 (17:59 +0000)
* tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
edge information when we commit ourselves to threading a
particular jump.

From-SVN: r89462

gcc/ChangeLog
gcc/tree-cfg.c

index 7a23a2d01049f3325a9f513a2311b887e209c274..34abac14f7fd9f791ac8d712c14286c46b9d2900 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
+       edge information when we commit ourselves to threading a
+       particular jump.
+
 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
index 0bf7b16b6b3d1a298a9891281d0d25675b27b0aa..bdcabf3a58a06cd57884e26bf8ff36a0a58aa40f 100644 (file)
@@ -3788,9 +3788,6 @@ thread_jumps_from_bb (basic_block bb)
          continue;
        }
 
-      count = e->count;
-      freq = EDGE_FREQUENCY (e);
-
       /* Now walk through as many forwarder blocks as possible to find
         the ultimate destination we want to thread our jump to.  */
       last = EDGE_SUCC (e->dest, 0);
@@ -3839,6 +3836,8 @@ thread_jumps_from_bb (basic_block bb)
 
       /* Perform the redirection.  */
       retval = true;
+      count = e->count;
+      freq = EDGE_FREQUENCY (e);
       old_dest = e->dest;
       e = redirect_edge_and_branch (e, dest);
 
This page took 0.786324 seconds and 5 git commands to generate.