public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Remove couple of dead lines in reload_cse_simplify
@ 2016-02-01 11:04 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2016-02-01 11:04 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

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  <ebotcazou@adacore.com>

	* postreload.c (reload_cse_simplify): Remove dead code.

-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 497 bytes --]

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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-01 11:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-01 11:04 Remove couple of dead lines in reload_cse_simplify Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).