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]

Re: [PATCH] Optimize bfi by remove redundant zero_extend


On 02/13/2015 08:26 AM, Renlin Li wrote:
> +      /* Complete overlap.  We can remove the source ZERO_EXTEND.  */
> +      if (width == inner_size
> +	  && (regno < FIRST_PSEUDO_REGISTER)
> +	  && HARD_REGNO_MODE_OK (regno, mode))
> +      {
> +	rtx reg = gen_rtx_REG (mode, regno);
> +	return gen_rtx_SET (VOIDmode, dest, reg);

What in the world are you doing here with the hard registers?


r~


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