Commit 898c90c0 by Eric Botcazou Committed by Eric Botcazou

cfgrtl.c (commit_one_edge_insertion): Remove always-true test and reindent the subsequent block.

	* cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
	reindent the subsequent block.

From-SVN: r173685
parent cddebdb7
2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
* cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
reindent the subsequent block.
2011-05-11 Satoru Takabayashi <satorux@google.com>
Paul Pluzhnikov <ppluzhnikov@google.com>
......
......@@ -1465,15 +1465,13 @@ void
commit_one_edge_insertion (edge e)
{
rtx before = NULL_RTX, after = NULL_RTX, insns, tmp, last;
basic_block bb = NULL;
basic_block bb;
/* Pull the insns off the edge now since the edge might go away. */
insns = e->insns.r;
e->insns.r = NULL_RTX;
if (!before && !after)
{
/* Figure out where to put these things. If the destination has
/* Figure out where to put these insns. If the destination has
one predecessor, insert there. Except for the exit block. */
if (single_pred_p (e->dest) && e->dest != EXIT_BLOCK_PTR)
{
......@@ -1512,13 +1510,13 @@ commit_one_edge_insertion (edge e)
before = BB_END (bb);
else
{
/* We'd better be fallthru, or we've lost track of
what's what. */
/* We'd better be fallthru, or we've lost track of what's what. */
gcc_assert (e->flags & EDGE_FALLTHRU);
after = BB_END (bb);
}
}
/* Otherwise we must split the edge. */
else
{
......@@ -1535,10 +1533,8 @@ commit_one_edge_insertion (edge e)
&& (single_succ_edge (bb)->flags & EDGE_CROSSING))
add_reg_note (after, REG_CROSSING_JUMP, NULL_RTX);
}
}
/* Now that we've found the spot, do the insertion. */
if (before)
{
emit_insn_before_noloc (insns, before, bb);
......
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