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.c patch (for after the branch)


Sun Jan 21 00:32:49 2001  J"orn Rennecke <amylaar@redhat.com>

	* combine.c (try_combine): If split with mode-changed scratch
	register didn't work, try the original mode.

Index: combine.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/combine.c,v
retrieving revision 1.246
diff -p -r1.246 combine.c
*** combine.c	2001/01/03 06:48:23	1.246
--- combine.c	2001/01/21 00:32:40
*************** try_combine (i3, i2, i1, new_direct_jump
*** 2127,2132 ****
--- 2127,2141 ----
  					     gen_rtx_CLOBBER (VOIDmode,
  							      ni2dest))),
  				 i3);
+ 	  /* If the split with the mode-changed register didn't work, try
+ 	     the original register.  */
+ 	  if (! m_split && ni2dest != i2dest)
+ 	    m_split = split_insns (gen_rtx_PARALLEL
+ 				   (VOIDmode,
+ 				    gen_rtvec (2, newpat,
+ 					       gen_rtx_CLOBBER (VOIDmode,
+ 								i2dest))),
+ 				    i3);
  	}
  
        if (m_split && GET_CODE (m_split) != SEQUENCE)

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