summaryrefslogtreecommitdiffstats
path: root/gcc/ssa-dce.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ssa-dce.c')
-rw-r--r--gcc/ssa-dce.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/ssa-dce.c b/gcc/ssa-dce.c
index 797a01ca68a..62e59e80bfc 100644
--- a/gcc/ssa-dce.c
+++ b/gcc/ssa-dce.c
@@ -468,7 +468,6 @@ static void
delete_insn_bb (insn)
rtx insn;
{
- basic_block bb;
if (!insn)
abort ();
@@ -480,20 +479,6 @@ delete_insn_bb (insn)
if (! INSN_P (insn))
return;
- bb = BLOCK_FOR_INSN (insn);
- if (!bb)
- abort ();
- if (bb->head == bb->end)
- {
- /* Delete the insn by converting it to a note. */
- PUT_CODE (insn, NOTE);
- NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED;
- return;
- }
- else if (insn == bb->head)
- bb->head = NEXT_INSN (insn);
- else if (insn == bb->end)
- bb->end = PREV_INSN (insn);
delete_insn (insn);
}
OpenPOWER on IntegriCloud