From patchwork Wed May 3 07:50:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 98469 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp176483qgd; Wed, 3 May 2017 00:50:48 -0700 (PDT) X-Received: by 10.98.202.80 with SMTP id n77mr3363069pfg.158.1493797848442; Wed, 03 May 2017 00:50:48 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b6si6280750pgc.17.2017.05.03.00.50.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 00:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-452658-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-452658-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-452658-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=UavUvFzTcmziIFc4LGq4XHjBfi44zJyL3VpN+viDWxBNc1gKMMU/n 5IHXrP8n+IBsDjTtmWxcHLEPYRv9iujqEHH+FT5LxiIxEpIlCoN5WzK3h2OvDiNH RIYSVyvIZIW8tgMkeaPYCf3ClvD+IBewUQkZ7QUBKADE6Z81nG//io= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=p10u+rXOSS1PstAwWkwxWLGodn8=; b=n4IpLMyBPP4uQw3JWFBP tZxBrbttUp+rVmNlHlkNBpEPyjooICewUR9vAjOZd6o2/RDlrDqS7DMNlE4a0Nu8 JdSuFadOrukSE2Mv2KuET1KwPWzoiyQu//IdiESgXUL4IJHxSo85YK4y47T5imSq QHCSdnk+TbOXhcpKFHVdYZs= Received: (qmail 51888 invoked by alias); 3 May 2017 07:50:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 51785 invoked by uid 89); 3 May 2017 07:50:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:Wed, Hx-languages-length:2830, distance X-HELO: mail-wm0-f47.google.com Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 May 2017 07:50:24 +0000 Received: by mail-wm0-f47.google.com with SMTP id r190so47355148wme.1 for ; Wed, 03 May 2017 00:50:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=SNJcauQC0zSoBBLKth2znIsUmVRLF2g0gwShh+lx5p4=; b=nsY6OwZMsKHJmLHGnHrQPitx8bKpPIfjI1nf3AfQD52L/grFgultJgbKCz9+TLtgRg BEGdcnS01S+0RFZVJ8IeVvtzMKdQSAOKMoc7pXqEvWaxi6xvSn10WpKiZvFjYGGsSACB yxEdRFCyBWISFJ+gJ2ZhTMUp0DMa/GAJO989YhnHrrDlKqVbUw4HZk1h8UGq4EtPtFq2 PyYbcYA19H01Fu6uuWKFS1zudcWwhsI/vN2wm3QyH4DF0wGiWHUq62Wg9X+kI6cPxkNL EYopz3HKCUoMDwctjjbFnSRDc/dSiwY6FfuhztyXZZL8K5jhvrUkrkGzhK7fDbl2zaV6 Ef0w== X-Gm-Message-State: AN3rC/6eEDFVAEXhgBSMhS903A+QdDqa+XppOaqpVahLENwCk0/lMKPE Q1SA62qwL1++3EgRR267aA== X-Received: by 10.28.161.66 with SMTP id k63mr799584wme.46.1493797824088; Wed, 03 May 2017 00:50:24 -0700 (PDT) Received: from localhost (94.197.120.23.threembb.co.uk. [94.197.120.23]) by smtp.gmail.com with ESMTPSA id 25sm24524632wrz.8.2017.05.03.00.50.22 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 May 2017 00:50:23 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [committed] Wrap tree-data-ref.h macro arguments Date: Wed, 03 May 2017 08:50:21 +0100 Message-ID: <874lx2tm4i.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Tested on aarch64-linux-gnu and x86_64-linux-gnu. Installed as obvious. Thanks, Richard gcc/ 2016-05-03 Richard Sandiford * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets. (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise. (DDR_A): Wrap DDR argument in brackets. (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise. (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise. (DDR_REVERSED_P): Likewise. Index: gcc/tree-data-ref.h =================================================================== --- gcc/tree-data-ref.h 2017-02-23 19:54:15.000000000 +0000 +++ gcc/tree-data-ref.h 2017-05-03 08:48:11.977015306 +0100 @@ -209,10 +209,10 @@ struct subscript typedef struct subscript *subscript_p; -#define SUB_CONFLICTS_IN_A(SUB) SUB->conflicting_iterations_in_a -#define SUB_CONFLICTS_IN_B(SUB) SUB->conflicting_iterations_in_b -#define SUB_LAST_CONFLICT(SUB) SUB->last_conflict -#define SUB_DISTANCE(SUB) SUB->distance +#define SUB_CONFLICTS_IN_A(SUB) (SUB)->conflicting_iterations_in_a +#define SUB_CONFLICTS_IN_B(SUB) (SUB)->conflicting_iterations_in_b +#define SUB_LAST_CONFLICT(SUB) (SUB)->last_conflict +#define SUB_DISTANCE(SUB) (SUB)->distance /* A data_dependence_relation represents a relation between two data_references A and B. */ @@ -268,20 +268,20 @@ struct data_dependence_relation typedef struct data_dependence_relation *ddr_p; -#define DDR_A(DDR) DDR->a -#define DDR_B(DDR) DDR->b -#define DDR_AFFINE_P(DDR) DDR->affine_p -#define DDR_ARE_DEPENDENT(DDR) DDR->are_dependent -#define DDR_SUBSCRIPTS(DDR) DDR->subscripts +#define DDR_A(DDR) (DDR)->a +#define DDR_B(DDR) (DDR)->b +#define DDR_AFFINE_P(DDR) (DDR)->affine_p +#define DDR_ARE_DEPENDENT(DDR) (DDR)->are_dependent +#define DDR_SUBSCRIPTS(DDR) (DDR)->subscripts #define DDR_SUBSCRIPT(DDR, I) DDR_SUBSCRIPTS (DDR)[I] #define DDR_NUM_SUBSCRIPTS(DDR) DDR_SUBSCRIPTS (DDR).length () -#define DDR_LOOP_NEST(DDR) DDR->loop_nest +#define DDR_LOOP_NEST(DDR) (DDR)->loop_nest /* The size of the direction/distance vectors: the number of loops in the loop nest. */ #define DDR_NB_LOOPS(DDR) (DDR_LOOP_NEST (DDR).length ()) -#define DDR_INNER_LOOP(DDR) DDR->inner_loop -#define DDR_SELF_REFERENCE(DDR) DDR->self_reference_p +#define DDR_INNER_LOOP(DDR) (DDR)->inner_loop +#define DDR_SELF_REFERENCE(DDR) (DDR)->self_reference_p #define DDR_DIST_VECTS(DDR) ((DDR)->dist_vects) #define DDR_DIR_VECTS(DDR) ((DDR)->dir_vects) @@ -293,7 +293,7 @@ #define DDR_DIR_VECT(DDR, I) \ DDR_DIR_VECTS (DDR)[I] #define DDR_DIST_VECT(DDR, I) \ DDR_DIST_VECTS (DDR)[I] -#define DDR_REVERSED_P(DDR) DDR->reversed_p +#define DDR_REVERSED_P(DDR) (DDR)->reversed_p bool dr_analyze_innermost (struct data_reference *, struct loop *);