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
This commit is contained in:
parent
5132abc2a8
commit
218d153705
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user