OSDN Git Service

* tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Mar 2005 18:54:34 +0000 (18:54 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Mar 2005 18:54:34 +0000 (18:54 +0000)
        CFG_ALTERED in the main DOM iteration loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95788 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 3f8b31e..c9ec502 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-02  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
+       CFG_ALTERED in the main DOM iteration loop.
+
 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/19916
index a313925..5216c3b 100644 (file)
@@ -434,7 +434,7 @@ tree_ssa_dominator_optimize (void)
       free_all_edge_infos ();
 
       /* Thread jumps, creating duplicate blocks as needed.  */
-      cfg_altered = thread_through_all_blocks ();
+      cfg_altered |= thread_through_all_blocks ();
 
       /* Removal of statements may make some EH edges dead.  Purge
         such edges from the CFG as needed.  */
@@ -445,7 +445,7 @@ tree_ssa_dominator_optimize (void)
        }
 
       free_dominance_info (CDI_DOMINATORS);
-      cfg_altered = cleanup_tree_cfg ();
+      cfg_altered |= cleanup_tree_cfg ();
       calculate_dominance_info (CDI_DOMINATORS);
 
       rewrite_ssa_into_ssa ();