They are not flagged by the compiler, albeit obviously dead, but static
analyzers will probably not miss them.
Tested on x86_64-suse-linux, applied on the mainline.
2016-02-01 Eric Botcazou <ebotca...@adacore.com>
* postreload.c (reload_cse_simplify): Remove dead code.
--
Eric Botcazou
Index: postreload.c
===================================================================
--- postreload.c (revision 232976)
+++ postreload.c (working copy)
@@ -106,10 +106,6 @@ reload_cse_simplify (rtx_insn *insn, rtx
if (!count && reload_cse_noop_set_p (body))
{
- rtx value = SET_DEST (body);
- if (REG_P (value)
- && ! REG_FUNCTION_VALUE_P (value))
- value = 0;
if (check_for_inc_dec (insn))
delete_insn_and_edges (insn);
/* We're done with this insn. */