From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77506 invoked by alias); 5 Dec 2017 17:25:11 -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 77458 invoked by uid 89); 5 Dec 2017 17:25:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:979, 052, protect 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, 05 Dec 2017 17:25:03 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A902C37E80; Tue, 5 Dec 2017 17:25:02 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-2.rdu2.redhat.com [10.10.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC7B862522; Tue, 5 Dec 2017 17:25:01 +0000 (UTC) Subject: Re: [052/nnn] poly_int: bit_field_size/offset To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org References: <871sltvm7r.fsf@linaro.org> <87mv4hlqyu.fsf@linaro.org> From: Jeff Law Message-ID: Date: Tue, 05 Dec 2017 17:25: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: <87mv4hlqyu.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00240.txt.bz2 On 10/23/2017 11:22 AM, Richard Sandiford wrote: > verify_expr ensured that the size and offset in gimple BIT_FIELD_REFs > satisfied tree_fits_uhwi_p. This patch extends that so that they can > be poly_uint64s, and adds helper routines for accessing them when the > verify_expr requirements apply. > > > 2017-10-23 Richard Sandiford > Alan Hayward > David Sherwood > > gcc/ > * tree.h (bit_field_size, bit_field_offset): New functions. > * hsa-gen.c (gen_hsa_addr): Use them. > * tree-ssa-forwprop.c (simplify_bitfield_ref): Likewise. > (simplify_vector_constructor): Likewise. > * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. > * tree-cfg.c (verify_expr): Require the sizes and offsets of a > BIT_FIELD_REF to be poly_uint64s rather than uhwis. > * fold-const.c (fold_ternary_loc): Protect tree_to_uhwi with > tree_fits_uhwi_p. > OK. jeff