This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [17/77] Add an int_mode_for_size helper function
- 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: Mon, 14 Aug 2017 12:29:43 -0600
- Subject: Re: [17/77] Add an int_mode_for_size helper function
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.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 A98C8C062EA1
- References: <8760ewohsv.fsf@linaro.org> <874luglo91.fsf@linaro.org>
On 07/13/2017 02:44 AM, Richard Sandiford wrote:
> This patch adds a wrapper around mode_for_size for cases in which
> the mode class is MODE_INT (the commonest case). The return type
> can then be an opt_scalar_int_mode instead of a machine_mode.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * machmode.h (int_mode_for_size): New function.
> * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
> instead of mode_for_size.
> * calls.c (save_fixed_argument_area): Likewise. Make use of BLKmode
> explicit.
> * combine.c (expand_field_assignment): Use int_mode_for_size
> instead of mode_for_size.
> (make_extraction): Likewise.
> (simplify_shift_const_1): Likewise.
> (simplify_comparison): Likewise.
> * dojump.c (do_jump): Likewise.
> * dwarf2out.c (mem_loc_descriptor): Likewise.
> * emit-rtl.c (init_derived_machine_modes): Likewise.
> * expmed.c (flip_storage_order): Likewise.
> (convert_extracted_bit_field): Likewise.
> * expr.c (copy_blkmode_from_reg): Likewise.
> * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
> * internal-fn.c (expand_mul_overflow): Likewise.
> * lower-subreg.c (simple_move): Likewise.
> * optabs-libfuncs.c (init_optabs): Likewise.
> * simplify-rtx.c (simplify_unary_operation_1): Likewise.
> * stor-layout.c (vector_type_mode): Likewise.
> * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
> * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
> * tree-vect-generic.c (expand_vector_parallel): Likewise.
> * tree-vect-stmts.c (vectorizable_load): Likewise.
>
> gcc/ada/
> * gcc-interface/decl.c (gnat_to_gnu_entity): Use int_mode_for_size
> instead of mode_for_size.
> (gnat_to_gnu_subprog_type): Likewise.
> * gcc-interface/utils.c (make_type_from_size): Likewise.
OK.
Jeff