From 7bf606441c240250474b45d77c3a122e178349a0 Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 7 Sep 2012 10:23:06 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191063 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/graphite-scop-detection.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gcc/graphite-scop-detection.c') diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 408e6b2fb52..48bbae94dce 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); -- cgit v1.2.1