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]

patch for accidental loop unrolling breakage


I checked in this patch, which makes loop unrolling work again for some
targets.

Thu Sep 24 13:16:48 1998  Jim Wilson  <wilson@cygnus.com>

	* loop.c (get_condition): Fix typo in May 9 change.

Index: loop.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/loop.c,v
retrieving revision 1.77
diff -p -r1.77 loop.c
*** loop.c	1998/09/18 20:54:55	1.77
--- loop.c	1998/09/24 20:16:42
*************** get_condition (jump, earliest)
*** 7831,7837 ****
  		     ))
  		   && GET_RTX_CLASS (GET_CODE (SET_SRC (set))) == '<'))
  	      && ((GET_MODE_CLASS (mode) == MODE_CC)
! 		  != (GET_MODE_CLASS (inner_mode) == MODE_CC)))
  	    x = SET_SRC (set);
  	  else if (((code == EQ
  		     || (code == GE
--- 7831,7837 ----
  		     ))
  		   && GET_RTX_CLASS (GET_CODE (SET_SRC (set))) == '<'))
  	      && ((GET_MODE_CLASS (mode) == MODE_CC)
! 		  == (GET_MODE_CLASS (inner_mode) == MODE_CC)))
  	    x = SET_SRC (set);
  	  else if (((code == EQ
  		     || (code == GE
*************** get_condition (jump, earliest)
*** 7849,7855 ****
  		     ))
  		   && GET_RTX_CLASS (GET_CODE (SET_SRC (set))) == '<'
  	           && ((GET_MODE_CLASS (mode) == MODE_CC)
! 		       != (GET_MODE_CLASS (inner_mode) == MODE_CC)))
  	    {
  	      /* We might have reversed a LT to get a GE here.  But this wasn't
  		 actually the comparison of data, so we don't flag that we
--- 7849,7855 ----
  		     ))
  		   && GET_RTX_CLASS (GET_CODE (SET_SRC (set))) == '<'
  	           && ((GET_MODE_CLASS (mode) == MODE_CC)
! 		       == (GET_MODE_CLASS (inner_mode) == MODE_CC)))
  	    {
  	      /* We might have reversed a LT to get a GE here.  But this wasn't
  		 actually the comparison of data, so we don't flag that we


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