This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

combine tweak


This patch removes a redundant test from one function in combine.c.
It should have no effect whatsoever on compiler behavior.  I generated
the patch with diff -b to make obvious what is changed; the patch
applied to CVS corrects the formatting as well.

Bootstrapped i686-linux; approved by Bernd Schmidt.

zw

	* combine.c (try_combine): Remove redundant test.

===================================================================
Index: combine.c
--- combine.c	2000/11/24 11:28:51	1.165
+++ combine.c	2000/11/26 01:57:44
@@ -2552,8 +2552,6 @@ try_combine (i3, i2, i1, new_direct_jump
 
     if (i3_subst_into_i2 && GET_CODE (PATTERN (i2)) == PARALLEL)
       {
-	if (GET_CODE (PATTERN (i2)) == PARALLEL)
-	  {
 	    for (i = 0; i < XVECLEN (PATTERN (i2), 0); i++)
 	      if (GET_CODE (SET_DEST (XVECEXP (PATTERN (i2), 0, i))) == REG
 		  && SET_DEST (XVECEXP (PATTERN (i2), 0, i)) != i2dest
@@ -2567,7 +2565,6 @@ try_combine (i3, i2, i1, new_direct_jump
 		    for (link = LOG_LINKS (temp); link; link = XEXP (link, 1))
 		      if (XEXP (link, 0) == i2)
 			XEXP (link, 0) = i3;
-	  }
 
 	if (i3notes)
 	  {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]