]> gcc.gnu.org Git - gcc.git/commitdiff
tree-ssa-threadupdate.c (rediscover_loops_after_threading): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Sun, 5 Mar 2006 17:31:20 +0000 (17:31 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 5 Mar 2006 17:31:20 +0000 (17:31 +0000)
* tree-ssa-threadupdate.c (rediscover_loops_after_threading):
Remove.
* basic-block.h: Remove the extern for
rediscover_loops_after_threading.

From-SVN: r111734

gcc/ChangeLog
gcc/basic-block.h
gcc/tree-ssa-threadupdate.c

index 89ad55d0e5f813a92ef4adddac961d196149824d..332499b6c0d9aec162b94d9867991b97305bc68c 100644 (file)
@@ -1,3 +1,10 @@
+2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
+
+       * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
+       Remove.
+       * basic-block.h: Remove the extern for
+       rediscover_loops_after_threading.
+
 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
 
        * recog.c (volatile_mem_p, validate_change_maybe_volatile):
index 8179e094338a405e279562c1cd4344803027f74f..a07a517d39e00e032101518b5baccea7b4fa9c2f 100644 (file)
@@ -414,10 +414,6 @@ struct control_flow_graph GTY(())
 #define BASIC_BLOCK(N)         (VEC_index (basic_block, basic_block_info, (N)))
 #define SET_BASIC_BLOCK(N,BB)  (VEC_replace (basic_block, basic_block_info, (N), (BB)))
 
-/* TRUE if we should re-run loop discovery after threading jumps, FALSE
-   otherwise.  */
-extern bool rediscover_loops_after_threading;
-
 /* For iterating over basic blocks.  */
 #define FOR_BB_BETWEEN(BB, FROM, TO, DIR) \
   for (BB = FROM; BB != TO; BB = BB->DIR)
index 4a92effb5a47f925aff2bec9ab772b3b375547aa..444bbb72aeae7daed916ed524ae79e904df14f03 100644 (file)
@@ -131,8 +131,6 @@ struct redirection_data
 /* Main data structure to hold information for duplicates of BB.  */
 static htab_t redirection_data;
 
-bool rediscover_loops_after_threading;
-
 /* Data structure of information to pass to hash table traversal routines.  */
 struct local_info
 {
@@ -735,30 +733,6 @@ thread_block (basic_block bb)
          update_bb_profile_for_threading (e->dest, EDGE_FREQUENCY (e),
                                           e->count, e->aux);
 
-         /* If we thread to a loop exit edge, then we will need to 
-            rediscover the loop exit edges.  While it may seem that
-            the new edge is a loop exit edge, that is not the case.
-            Consider threading the edge (5,6) to E in the CFG on the
-            left which creates the CFG on the right:
-
-
-                      0<--+            0<---+
-                     / \  |           / \   |
-                    1   2 |          1   2  |
-                   / \  | |         / \  |  |
-                  3   4 | |        3   4 6--+
-                   \ /  | |         \ /
-                    5   | |          5
-                     \ /  |          |
-                      6---+          E
-                      |
-                      E
-
-            After threading, the edge (0, 1)  is the loop exit edge and
-            the nodes 0, 2, 6 are the only nodes in the loop.  */
-         if (e2->flags & EDGE_LOOP_EXIT)
-           rediscover_loops_after_threading = true;
-
          /* Insert the outgoing edge into the hash table if it is not
             already in the hash table.  */
          lookup_redirection_data (e2, e, INSERT);
@@ -859,7 +833,6 @@ thread_through_all_blocks (void)
     return false;
 
   threaded_blocks = BITMAP_ALLOC (NULL);
-  rediscover_loops_after_threading = false;
   memset (&thread_stats, 0, sizeof (thread_stats));
 
   mark_threaded_blocks (threaded_blocks);
This page took 0.079063 seconds and 5 git commands to generate.