var-tracking.c (vt_find_locations): Set the in_pending bitmap at once.
authorJosef Zlomek <zlomekj@suse.cz>
Wed, 21 Jul 2004 17:03:47 +0000 (19:03 +0200)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Wed, 21 Jul 2004 17:03:47 +0000 (17:03 +0000)
* var-tracking.c (vt_find_locations): Set the in_pending bitmap at
once.

From-SVN: r85012

gcc/ChangeLog
gcc/var-tracking.c

index 8c8e783bb0a3be3593f07eef0d4377b8de055be0..66415377cedce5579df42ade9e8a95a03a60a1d5 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
+
+       * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
+       once.
+
 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
 
        * c-common.c (vector_types_convertible_p): Use vector types'
index f4eb356a5952405f79c670dbebc9f978c4b22393..6e95e502941f8ff9fd17aa4aec5864c746f1449d 100644 (file)
@@ -1700,13 +1700,10 @@ vt_find_locations (void)
   in_worklist = sbitmap_alloc (last_basic_block);
   in_pending = sbitmap_alloc (last_basic_block);
   sbitmap_zero (in_worklist);
-  sbitmap_zero (in_pending);
 
   FOR_EACH_BB (bb)
-    {
-      fibheap_insert (pending, bb_order[bb->index], bb);
-      SET_BIT (in_pending, bb->index);
-    }
+    fibheap_insert (pending, bb_order[bb->index], bb);
+  sbitmap_ones (in_pending);
 
   while (!fibheap_empty (pending))
     {