aboutsummaryrefslogtreecommitdiff
path: root/gcc/df.c
diff options
context:
space:
mode:
authorDaniel Berlin <dan@cgsoftware.com>2001-07-29 18:23:36 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2001-07-29 18:23:36 +0000
commit12285d9df86f4fa4ece1667265fe129e25287907 (patch)
tree723c07457dbbf07266baec14d90baa2c0c58105e /gcc/df.c
parentb2d5779326ed5cc88bdfd92051d7a0bc077b08ef (diff)
downloadgcc-12285d9df86f4fa4ece1667265fe129e25287907.zip
gcc-12285d9df86f4fa4ece1667265fe129e25287907.tar.gz
gcc-12285d9df86f4fa4ece1667265fe129e25287907.tar.bz2
df.c (df_rd_global_compute): Add successors to worklist, not current item.
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
Diffstat (limited to 'gcc/df.c')
-rw-r--r--gcc/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/df.c b/gcc/df.c
index 4548a31..52fa362 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);
}
}
}