From patchwork Tue Apr 18 10:49:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Cheng X-Patchwork-Id: 751784 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w6hk406J5z9s78 for ; Tue, 18 Apr 2017 20:50:35 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="QJHRBtS8"; dkim-atps=neutral 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:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=BrWI3LGAG5NWRDJsA31hsFL+g9u4rmVkNEKq9XwjnZQz5KnC5w YnlheQS1z+ApcyIk4R8GpFrMv6l7l93kCapQADfC+vIHQtj/tv0jy2Fvohiq959s 9flSE5HZ98hBEfFJ6ho6zTfw9dXZ7Rttizy0RENi15UMFgbpNPj2DHBb4= 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:cc:subject:date:message-id:content-type:mime-version; s= default; bh=WrtGnMeV2ssRLVFWbQXI/RE8tfU=; b=QJHRBtS8WSuN6zKyb8Lf EpmB0zxLtkWuJios1turCJA3i1XZUxIKsxebC5Fq9slY/2M+b5fFsJHZjO188Dln ccGreu4rbxDEblGDrnM4DKxeiJEIEue6i5oC/rt5p/uvtZzrrxW5d0p+Dqt6g3aT oO+Qp7as7ZEduYg+IAOP55I= Received: (qmail 17894 invoked by alias); 18 Apr 2017 10:50:04 -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 17825 invoked by uid 89); 18 Apr 2017 10:50:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:HHH X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40052.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Apr 2017 10:50:00 +0000 Received: from VI1PR0802MB2176.eurprd08.prod.outlook.com (10.172.12.21) by VI1PR0802MB2175.eurprd08.prod.outlook.com (10.172.12.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 18 Apr 2017 10:49:59 +0000 Received: from VI1PR0802MB2176.eurprd08.prod.outlook.com ([10.172.12.21]) by VI1PR0802MB2176.eurprd08.prod.outlook.com ([10.172.12.21]) with mapi id 15.01.1034.013; Tue, 18 Apr 2017 10:49:59 +0000 From: Bin Cheng To: "gcc-patches@gcc.gnu.org" CC: nd Subject: [PATCH GCC8][23/33]Simple comment adjustment Date: Tue, 18 Apr 2017 10:49:59 +0000 Message-ID: authentication-results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=arm.com; x-microsoft-exchange-diagnostics: 1; VI1PR0802MB2175; 7:wOIZku7lFgxwdXIxl40vcdRlT4A82nv0LJRIhVxeMMthWDcVg3h9Nm27yV0mG49gf0BJ/hYeMi0+JvoHAku1S8clo4o/zMrv9OjAJkHtNilnM9DQKVm949GFaje7vE8f+nF59sC0wes1ga5OO8j2pFRQDLQcwzqhkFqc5NMCFePXe+42WxLgS9nB8X0m18yer1M8KTWtkbIOlWcQmKUCoAM/aOhwDkIaqlE/0MXsMWwxdnZF7HZkezmi3Wag9DpCOejAHTA0FJ6dAMNaDgMktgrNjLmoUqFWhRw+JA8G6Zv5X+e4HMl79iGHA6lM7GEgI+MW+WBet2x3b/i7DOW7BA== x-ms-office365-filtering-correlation-id: b508c7ae-75b0-44b4-b251-08d48648a8e4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081); SRVR:VI1PR0802MB2175; nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:VI1PR0802MB2175; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2175; x-forefront-prvs: 028166BF91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(39400400002)(39850400002)(39410400002)(39450400003)(39840400002)(3280700002)(189998001)(7736002)(33656002)(102836003)(86362001)(4326008)(6916009)(8936002)(25786009)(305945005)(7696004)(5660300001)(8676002)(77096006)(6506006)(558084003)(74316002)(99936001)(2906002)(5640700003)(6116002)(53936002)(3846002)(81166006)(38730400002)(54356999)(2900100001)(110136004)(99286003)(55016002)(6436002)(9686003)(50986999)(122556002)(2351001)(3660700001)(2501003)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0802MB2175; H:VI1PR0802MB2176.eurprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2017 10:49:59.2707 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2175 X-IsSubscribed: yes Hi, This is simple comment adjustment. Thanks, bin 2017-04-11 Bin Cheng * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments. (get_shiftadd_cost): Ditto. From 9f2ca115ef2e376a472d591864a2d7a7dd9daacf Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Wed, 1 Mar 2017 17:36:30 +0000 Subject: [PATCH 23/33] comment-20170220.txt --- gcc/tree-ssa-loop-ivopts.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 21761e2..dcc4618 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -3112,9 +3112,9 @@ add_candidate_1 (struct ivopts_data *data, The purpose is to avoid splitting latch edge with a biv increment, thus creating a jump, possibly confusing other optimization passes and leaving - less freedom to scheduler. So we allow IP_END_POS only if IP_NORMAL_POS - is not available (so we do not have a better alternative), or if the latch - edge is already nonempty. */ + less freedom to scheduler. So we allow IP_END only if IP_NORMAL is not + available (so we do not have a better alternative), or if the latch edge + is already nonempty. */ static bool allow_ip_end_pos_p (struct loop *loop) @@ -3959,10 +3959,10 @@ adjust_setup_cost (struct ivopts_data *data, unsigned cost, return cost; } - /* Calculate the SPEED or size cost of shiftadd EXPR in MODE. MULT is the - EXPR operand holding the shift. COST0 and COST1 are the costs for - calculating the operands of EXPR. Returns true if successful, and returns - the cost in COST. */ +/* Calculate the SPEED or size cost of shiftadd EXPR in MODE. MULT is the + EXPR operand holding the shift. COST0 and COST1 are the costs for + calculating the operands of EXPR. Returns true if successful, and returns + the cost in COST. */ static bool get_shiftadd_cost (tree expr, machine_mode mode, comp_cost cost0,