This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cleanup in local-alloc.c
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 16 Dec 2004 16:48:30 +0000
- Subject: cleanup in local-alloc.c
- Organization: Codesourcery LLC
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;
}