Commit 218d1537 by Kazu Hirata Committed by Kazu Hirata

cfg.c (unchecked_make_edge, [...]): Use VEC_safe_push instead of VEC_safe_insert.

	* cfg.c (unchecked_make_edge, redirect_edge_succ,
	redirect_edge_pred): Use VEC_safe_push instead of
	VEC_safe_insert.
	* cfgrtl.c (force_nonfallthru_and_redirect): Likewise.

From-SVN: r89558
parent 5132abc2
2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
* cfg.c (unchecked_make_edge, redirect_edge_succ,
redirect_edge_pred): Use VEC_safe_push instead of
VEC_safe_insert.
* cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
* cfgloopmanip.c (loopify): Take two more arguments true_edge
and false_edge.
* cfgloop.h: Adjust the corresponding prototype.
......
......@@ -270,8 +270,8 @@ unchecked_make_edge (basic_block src, basic_block dst, int flags)
e = ggc_alloc_cleared (sizeof (*e));
n_edges++;
VEC_safe_insert (edge, src->succs, 0, e);
VEC_safe_insert (edge, dst->preds, 0, e);
VEC_safe_push (edge, src->succs, e);
VEC_safe_push (edge, dst->preds, e);
e->src = src;
e->dest = dst;
......@@ -418,7 +418,7 @@ redirect_edge_succ (edge e, basic_block new_succ)
gcc_assert (found);
/* Reconnect the edge to the new successor block. */
VEC_safe_insert (edge, new_succ->preds, 0, e);
VEC_safe_push (edge, new_succ->preds, e);
e->dest = new_succ;
}
......@@ -476,7 +476,7 @@ redirect_edge_pred (edge e, basic_block new_pred)
gcc_assert (found);
/* Reconnect the edge to the new predecessor block. */
VEC_safe_insert (edge, new_pred->succs, 0, e);
VEC_safe_push (edge, new_pred->succs, e);
e->src = new_pred;
}
......
......@@ -1069,7 +1069,7 @@ force_nonfallthru_and_redirect (edge e, basic_block target)
gcc_assert (found);
VEC_safe_insert (edge, bb->succs, 0, e);
VEC_safe_push (edge, bb->succs, e);
make_single_succ_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment