This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] cfgrtl.c: Remove delete_insn_chain_and_edges.
- From: kazu at codesourcery dot com (Kazu Hirata)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 01:03:06 -0700 (PDT)
- Subject: [patch] cfgrtl.c: Remove delete_insn_chain_and_edges.
Hi,
Attached is a patch to remove delete_insn_chain_and_edges.
AFAICT, this function has been unused since Steven Bosscher removed
libcall notes on 2008-06-17.
Bootstrapped on x86_64-pc-linux-gnu. OK to apply?
Kazu Hirata
2009-04-16 Kazu Hirata <kazu@codesourcery.com>
* cfgrtl.c (delete_insn_chain_and_edges): Remove.
* rtl.h: Remove the prototype for delete_insn_chain_and_edges.
Index: gcc/cfgrtl.c
===================================================================
--- gcc/cfgrtl.c (revision 146080)
+++ gcc/cfgrtl.c (working copy)
@@ -232,22 +232,6 @@ delete_insn_chain (rtx start, rtx finish
start = next;
}
}
-
-/* Like delete_insn_chain but also purge dead edges from BB. */
-
-void
-delete_insn_chain_and_edges (rtx first, rtx last)
-{
- bool purge = false;
-
- if (INSN_P (last)
- && BLOCK_FOR_INSN (last)
- && BB_END (BLOCK_FOR_INSN (last)) == last)
- purge = true;
- delete_insn_chain (first, last, false);
- if (purge)
- purge_dead_edges (BLOCK_FOR_INSN (last));
-}
/* Create a new basic block consisting of the instructions between HEAD and END
inclusive. This function is designed to allow fast BB construction - reuses
Index: gcc/rtl.h
===================================================================
--- gcc/rtl.h (revision 146080)
+++ gcc/rtl.h (working copy)
@@ -2146,7 +2146,6 @@ extern void emit_insn_at_entry (rtx);
extern void delete_insn_chain (rtx, rtx, bool);
extern rtx unlink_insn_chain (rtx, rtx);
extern rtx delete_insn_and_edges (rtx);
-extern void delete_insn_chain_and_edges (rtx, rtx);
extern rtx gen_lowpart_SUBREG (enum machine_mode, rtx);
extern rtx gen_const_mem (enum machine_mode, rtx);
extern rtx gen_frame_mem (enum machine_mode, rtx);