diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-09-29 21:23:35 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2004-09-30 07:23:35 +1000 |
commit | 2a7cd6864b2ee3f851acce01c8fd95ea28087137 (patch) | |
tree | 686caa606abc0cc169ce57c7911125aa93f2bb68 /gcc/tree-into-ssa.c | |
parent | 983de0da66b96b4f16808b60ebbc51cf6cc81917 (diff) | |
download | gcc-2a7cd6864b2ee3f851acce01c8fd95ea28087137.zip gcc-2a7cd6864b2ee3f851acce01c8fd95ea28087137.tar.gz gcc-2a7cd6864b2ee3f851acce01c8fd95ea28087137.tar.bz2 |
tree-flow.h (struct bb_ann_d): Remove num_preds member.
* tree-flow.h (struct bb_ann_d): Remove num_preds member.
* tree-into-ssa.c (rewrite_into_ssa): Don't set it.
(rewrite_ssa_into_ssa): Likewise.
* tree-phinodes.c (create_phi_node): Access the number of
predecessor edges using EDGE_COUNT() and not num_preds.
Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Steven Bosscher <stevenb@suse.de>
From-SVN: r88308
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index ec51faa..841938d 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -1450,10 +1450,7 @@ rewrite_into_ssa (bool all) can save significant time during PHI insertion for large graphs. */ dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap *)); FOR_EACH_BB (bb) - { - bb_ann (bb)->num_preds = EDGE_COUNT (bb->preds); - dfs[bb->index] = BITMAP_XMALLOC (); - } + dfs[bb->index] = BITMAP_XMALLOC (); for (i = 0; i < num_referenced_vars; i++) set_current_def (referenced_var (i), NULL_TREE); @@ -1579,10 +1576,7 @@ rewrite_ssa_into_ssa (void) can save significant time during PHI insertion for large graphs. */ dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap *)); FOR_EACH_BB (bb) - { - bb_ann (bb)->num_preds = EDGE_COUNT (bb->preds); - dfs[bb->index] = BITMAP_XMALLOC (); - } + dfs[bb->index] = BITMAP_XMALLOC (); /* Ensure that the dominance information is OK. */ calculate_dominance_info (CDI_DOMINATORS); |