This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [48/77] Make subroutines of num_sign_bit_copies operate on scalar_int_mode
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard dot sandiford at linaro dot org
- Date: Thu, 24 Aug 2017 00:21:06 -0600
- Subject: Re: [48/77] Make subroutines of num_sign_bit_copies operate on scalar_int_mode
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 52327883B6
- References: <8760ewohsv.fsf@linaro.org> <87eftkg1hb.fsf@linaro.org>
On 07/13/2017 02:55 AM, Richard Sandiford wrote:
> Similarly to the nonzero_bits patch, this one moves the mode
> class check and VOIDmode handling from num_sign_bit_copies1
> to num_sign_bit_copies itself, then changes the subroutines
> to operate on scalar_int_modes.
>
> gcc/
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
> than in subroutines. Return 1 for non-integer modes.
> (cached_num_sign_bit_copies): Change the type of the mode parameter
> to scalar_int_mode.
> (num_sign_bit_copies1): Likewise. Remove early exit for other mode
> classes. Handle CONST_INT_P first and then check whether X also
> has a scalar integer mode. Check the same thing for inner registers
> of a SUBREG and for values that are being extended or truncated.
OK.
jeff