df.c (df_rd_global_compute): Add successors to worklist, not current item.
authorDaniel Berlin <dan@cgsoftware.com>
Sun, 29 Jul 2001 18:23:36 +0000 (18:23 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Sun, 29 Jul 2001 18:23:36 +0000 (18:23 +0000)
2001-07-29  Daniel Berlin  <dan@cgsoftware.com>

* df.c (df_rd_global_compute): Add successors to worklist, not
current item.
(df_ru_global_compute): Ditto for preds.

From-SVN: r44461

gcc/ChangeLog
gcc/df.c

index e33fa6789a86da56a6b1d569ba90168c48f612d8..b887349beb445f1f556175843bfc9adb42433ae1 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
+
+       * df.c (df_rd_global_compute): Add successors to worklist, not
+       current item.
+       (df_ru_global_compute): Ditto.
+
 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
 
        * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
index 4548a313ceb7f663da5c812ccbbfb305a1de7fa4..52fa3629e5572e40e130b87dc26e4735d4372b0d 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -1684,7 +1684,7 @@ df_rd_global_compute (df, blocks)
              if (e->dest == EXIT_BLOCK_PTR)
                continue;
              
-             SET_BIT (worklist, i);
+             SET_BIT (worklist, e->dest->index);
            }
        }
     }
@@ -1761,7 +1761,7 @@ df_ru_global_compute (df, blocks)
              if (e->src == ENTRY_BLOCK_PTR)
                continue;
 
-             SET_BIT (worklist, i);          
+             SET_BIT (worklist, e->src->index);              
            }
        }
     }