aboutsummaryrefslogtreecommitdiff
path: root/gcc/df.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 18:23:36 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-29 18:23:36 +0000
commitf0fe3b14c6cf97653c99de34ef7dc9cbd32a801b (patch)
tree723c07457dbbf07266baec14d90baa2c0c58105e /gcc/df.c
parente0d1ffe3fe75fb094c8fafd70379406ba2829158 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44461 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);
}
}
}