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]
Other format: [Raw text]

cleanup in local-alloc.c


I've applied this obvious cleanup to local-alloc.c.  It is the
only application of IN_RANGE I could find, and the lower bound is zero
in this case.

booted & tested on i686-pc-linux-gnu.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-12-16  Nathan Sidwell  <nathan@codesourcery.com>

	* local-alloc.c (block_alloc): Replace IN_RANGE with simple
	comparison.

Index: local-alloc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/local-alloc.c,v
retrieving revision 1.143
diff -c -3 -p -r1.143 local-alloc.c
*** local-alloc.c	23 Nov 2004 23:10:18 -0000	1.143
--- local-alloc.c	16 Dec 2004 14:39:28 -0000
*************** block_alloc (int b)
*** 1314,1322 ****
  		  if (hard_reg != NULL_RTX)
  		    {
  		      if (REG_P (hard_reg)
! 			  && IN_RANGE (REGNO (hard_reg),
! 				       0, FIRST_PSEUDO_REGISTER - 1)
! 			  && ! call_used_regs[REGNO (hard_reg)])
  			continue;
  		    }
  
--- 1314,1321 ----
  		  if (hard_reg != NULL_RTX)
  		    {
  		      if (REG_P (hard_reg)
! 			  && REGNO (hard_reg) < FIRST_PSEUDO_REGISTER
! 			  && !call_used_regs[REGNO (hard_reg)])
  			continue;
  		    }
  

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