Patchwork Remove dead code from recog.c

login
register
mail settings
Submitter Paolo Bonzini
Date Oct. 28, 2010, 7:29 p.m.
Message ID <1288294147-32401-1-git-send-email-bonzini@gnu.org>
Download mbox | patch
Permalink /patch/69489/
State New
Headers show

Comments

Paolo Bonzini - Oct. 28, 2010, 7:29 p.m.
I found this a long time ago, now I found some time to bootstrap/regtest
it (x86_64-pc-linux-gnu) and submit it.

Ok for mainline?

2010-10-28  Paolo Bonzini  <bonzini@gnu.org>

        * recog.c (split_all_insns): Remove dead code.
Eric Botcazou - Oct. 28, 2010, 8:55 p.m.
> 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
>
>         * recog.c (split_all_insns): Remove dead code.

OK, thanks.

Patch

Index: gcc/recog.c
===================================================================
--- gcc/recog.c	(branch diag)
+++ gcc/recog.c	(working copy)
@@ -2868,15 +2868,8 @@  split_all_insns (void)
 		}
 	      else
 		{
-		  rtx last = split_insn (insn);
-		  if (last)
+		  if (split_insn (insn))
 		    {
-		      /* The split sequence may include barrier, but the
-			 BB boundary we are interested in will be set to
-			 previous one.  */
-
-		      while (BARRIER_P (last))
-			last = PREV_INSN (last);
 		      SET_BIT (blocks, bb->index);
 		      changed = true;
 		    }