diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2012-09-07 10:23:06 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2012-09-07 10:23:06 +0000 |
commit | d630245f9d4584bd3ecb2192f8e2ba05e1db77ba (patch) | |
tree | 6bacff29f54b81215a23625852fb1d19f6ee22c7 /gcc/graphite-scop-detection.c | |
parent | 183c7727f2fb0d7b3e8e0673da1436d11e8535cd (diff) | |
download | gcc-d630245f9d4584bd3ecb2192f8e2ba05e1db77ba.zip gcc-d630245f9d4584bd3ecb2192f8e2ba05e1db77ba.tar.gz gcc-d630245f9d4584bd3ecb2192f8e2ba05e1db77ba.tar.bz2 |
bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
* bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
* graphite.c (print_global_statistics): Use EDGE_COUNT instead
of VEC_length.
(print_graphite_scop_statistics): Likewise.
* graphite-scop-detection.c (get_bb_type): Use single_succ_p.
(print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
(canonicalize_loop_closed_ssa): Use single_pred_p.
* alias.c (reg_seen): Make this an sbitmap.
(record_set, init_alias_analysis): Update.
* tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
From-SVN: r191063
Diffstat (limited to 'gcc/graphite-scop-detection.c')
-rw-r--r-- | gcc/graphite-scop-detection.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 408e6b2..48bbae9 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -67,7 +67,7 @@ static gbb_type get_bb_type (basic_block bb, struct loop *last_loop) { VEC (basic_block, heap) *dom; - int nb_dom, nb_suc; + int nb_dom; struct loop *loop = bb->loop_father; /* Check, if we entry into a new loop. */ @@ -88,9 +88,7 @@ get_bb_type (basic_block bb, struct loop *last_loop) if (nb_dom == 0) return GBB_LAST; - nb_suc = VEC_length (edge, bb->succs); - - if (nb_dom == 1 && nb_suc == 1) + if (nb_dom == 1 && single_succ_p (bb)) return GBB_SIMPLE; return GBB_COND_HEADER; @@ -1114,7 +1112,7 @@ print_graphite_scop_statistics (FILE* file, scop_p scop) n_bbs++; n_p_bbs += bb->count; - if (VEC_length (edge, bb->succs) > 1) + if (EDGE_COUNT (bb->succs) > 1) { n_conditions++; n_p_conditions += bb->count; @@ -1299,7 +1297,7 @@ canonicalize_loop_closed_ssa (loop_p loop) bb = e->dest; - if (VEC_length (edge, bb->preds) == 1) + if (single_pred_p (bb)) { e = split_block_after_labels (bb); make_close_phi_nodes_unique (e->src); |