From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79210 invoked by alias); 21 Nov 2017 07:46:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 79177 invoked by uid 89); 21 Nov 2017 07:46:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KB_WAM_FROM_NAME_SINGLEWORD,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-languages-length:2060 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Nov 2017 07:46:04 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 597095FD6C; Tue, 21 Nov 2017 07:46:03 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-12.rdu2.redhat.com [10.10.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F0006A821; Tue, 21 Nov 2017 07:46:02 +0000 (UTC) Subject: Re: [106/nnn] poly_int: GET_MODE_BITSIZE To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org References: <871sltvm7r.fsf@linaro.org> <873769dake.fsf@linaro.org> From: Jeff Law Message-ID: <3aa95051-8284-503b-ab84-1054eb8eae2d@redhat.com> Date: Tue, 21 Nov 2017 07:49:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <873769dake.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg01855.txt.bz2 On 10/23/2017 11:43 AM, Richard Sandiford wrote: > This patch changes GET_MODE_BITSIZE from an unsigned short > to a poly_uint16. > > > 2017-10-23 Richard Sandiford > Alan Hayward > David Sherwood > > gcc/ > * machmode.h (mode_to_bits): Return a poly_uint16 rather than an > unsigned short. > (GET_MODE_BITSIZE): Return a constant if ONLY_FIXED_SIZE_MODES, > or if measurement_type is polynomial. > * calls.c (shift_return_value): Treat GET_MODE_BITSIZE as polynomial. > * combine.c (make_extraction): Likewise. > * dse.c (find_shift_sequence): Likewise. > * dwarf2out.c (mem_loc_descriptor): Likewise. > * expmed.c (store_integral_bit_field, extract_bit_field_1): Likewise. > (extract_bit_field, extract_low_bits): Likewise. > * expr.c (convert_move, convert_modes, emit_move_insn_1): Likewise. > (optimize_bitfield_assignment_op, expand_assignment): Likewise. > (store_field, expand_expr_real_1): Likewise. > * fold-const.c (optimize_bit_field_compare, merge_ranges): Likewise. > * gimple-fold.c (optimize_atomic_compare_exchange_p): Likewise. > * reload.c (find_reloads): Likewise. > * reload1.c (alter_reg): Likewise. > * stor-layout.c (bitwise_mode_for_mode, compute_record_mode): Likewise. > * targhooks.c (default_secondary_memory_needed_mode): Likewise. > * tree-if-conv.c (predicate_mem_writes): Likewise. > * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise. > * tree-vect-patterns.c (adjust_bool_pattern): Likewise. > * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise. > * valtrack.c (dead_debug_insert_temp): Likewise. > * varasm.c (mergeable_constant_section): Likewise. > * config/sh/sh.h (LOCAL_ALIGNMENT): Use as_a . > > gcc/ada/ > * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_BITSIZE > as polynomial. > > gcc/c-family/ > * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE > as polynomial. This is OK. Obviously it can't go in until if/when the whole it is ack'd. Jeff