This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [51/77] Use opt_scalar_int_mode when iterating over integer modes
- 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 09:40:05 -0600
- Subject: Re: [51/77] Use opt_scalar_int_mode when iterating over integer modes
- 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 55F29806C3
- References: <8760ewohsv.fsf@linaro.org> <871spkg1fr.fsf@linaro.org>
On 07/13/2017 02:56 AM, Richard Sandiford wrote:
> This patch uses opt_scalar_int_mode rather than machine_mode
> when iterating over scalar_int_modes, in cases where that helps
> with future patches. (Using machine_mode is still OK in places
> that don't really care about the mode being a scalar integer.)
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * cse.c (cse_insn): Use opt_scalar_int_mode for the mode iterator.
> * explow.c (hard_function_value): Likewise.
> * expmed.c (init_expmed_one_mode): Likewise.
> (extract_fixed_bit_field_1): Likewise. Move the convert_to_mode
> call outside the loop.
> * expr.c (alignment_for_piecewise_move): Use opt_scalar_int_mode
> for the mode iterator. Require the mode specified by max_pieces
> to exist.
> (emit_block_move_via_movmem): Use opt_scalar_int_mode for the
> mode iterator.
> (copy_blkmode_to_reg): Likewise.
> (set_storage_via_setmem): Likewise.
> * optabs.c (prepare_cmp_insn): Likewise.
> * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
> * stor-layout.c (finish_bitfield_representative): Likewise.
>
> gcc/fortran/
> * trans-types.c (gfc_init_kinds): Use opt_scalar_int_mode for
> the mode iterator.
>
OK.
jeff