This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize bfi by remove redundant zero_extend
- From: Richard Henderson <rth at redhat dot com>
- To: Renlin Li <renlin dot li at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Fri, 13 Feb 2015 09:04:55 -0800
- Subject: Re: [PATCH] Optimize bfi by remove redundant zero_extend
- Authentication-results: sourceware.org; auth=none
- References: <54DE25BD dot 1030401 at arm dot com>
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~