From 12285d9df86f4fa4ece1667265fe129e25287907 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 29 Jul 2001 18:23:36 +0000 Subject: [PATCH] df.c (df_rd_global_compute): Add successors to worklist, not current item. 2001-07-29 Daniel Berlin * 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 | 6 ++++++ gcc/df.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e33fa6789a8..b887349beb4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-07-29 Daniel Berlin + + * df.c (df_rd_global_compute): Add successors to worklist, not + current item. + (df_ru_global_compute): Ditto. + 2001-07-27 Daniel Berlin * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we diff --git a/gcc/df.c b/gcc/df.c index 4548a313ceb..52fa3629e55 100644 --- 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); } } } -- 2.30.2