Patchwork [PR43920,4/9] Cross-jumping - Don't count use or clobber.

login
register
mail settings
Submitter Tom de Vries
Date April 1, 2011, 2:48 p.m.
Message ID <4D95E5D2.6060603@codesourcery.com>
Download mbox | patch
Permalink /patch/89272/
State New
Headers show

Comments

Tom de Vries - April 1, 2011, 2:48 p.m.
Reposting, with ChangeLog.
Jeff Law - April 4, 2011, 7:10 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/01/11 08:48, Tom de Vries wrote:
> Reposting, with ChangeLog.

> 	PR target/43920
> 	* cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
> 	insn.

OK.

jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNmhe5AAoJEBRtltQi2kC7shsH/jCMbUcv2O3f3Z+kXMq8az/R
qNJfeeNPn/6In+FDx7168ii0LT5thG5/D6ZFpfrmv2FB4QARF2+5E6XYuXEMLxoJ
PU6SND7Yc2VsVf2eU1AKxtgNVCEsgJWLafVd8GfSO6OT8wjQ/P9vw9NOt0NXBRtU
i5KsPmnfULm9H3HHzKlbgBU1IkpZJIlP9Bj4U0ttDmtCB/72BvTJ7kedoR4Lp1VM
JV8IkgqlGL+ptyN+IVgDX9fQ92TCiSjfiAzAX73LWzjr8VH+HAejPzEIS9bO7Ndr
uNtS2edRJJqNyFbIUApNAab4/eaJpeas8tO3ZALQaCibCnyvMJA5z+uZy7sWF7U=
=kMtv
-----END PGP SIGNATURE-----

Patch

2011-04-01  Tom de Vries  <tom@codesourcery.com>

	PR target/43920
	* cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
	insn.

Index: gcc/cfgcleanup.c
===================================================================
--- gcc/cfgcleanup.c	(revision 170556)
+++ gcc/cfgcleanup.c	(working copy)
@@ -1074,6 +1074,7 @@  flow_find_cross_jump (basic_block bb1, b
 {
   rtx i1, i2, last1, last2, afterlast1, afterlast2;
   int ninsns = 0;
+  rtx p1;
 
   /* Skip simple jumps at the end of the blocks.  Complex jumps still
      need to be compared for equivalence, which we'll do below.  */
@@ -1122,7 +1123,9 @@  flow_find_cross_jump (basic_block bb1, b
 
 	  afterlast1 = last1, afterlast2 = last2;
 	  last1 = i1, last2 = i2;
-	  ninsns++;
+	  p1 = PATTERN (i1);
+	  if (!(GET_CODE (p1) == USE || GET_CODE (p1) == CLOBBER))
+            ninsns++;
 	}
 
       i1 = PREV_INSN (i1);