This is the mail archive of the gcc@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]

Re: gcc compile-time performance


On Sat, May 18, 2002 at 09:20:38PM -0700, David S. Miller wrote:
> +      tmpmode = reg_raw_mode[regno];
> +      nxtmode = GET_MODE_WIDER_MODE (tmpmode);
> +      while (HARD_REGNO_MODE_OK (regno, nxtmode))
> +	{
> +	  tmpmode = nxtmode;
> +	  nxtmode = GET_MODE_WIDER_MODE (tmpmode);
> +	}

You should also stop at nxtmode == VOIDmode.


r~


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