From patchwork Tue Apr 18 10:52:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Cheng X-Patchwork-Id: 751789 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 3w6hn06Nksz9s7h for ; Tue, 18 Apr 2017 20:53:08 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="FuPFRrUR"; 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=ZX0XEnVGWOAEtXEc3xhbSzua8YCtjkJxtuNGSO9VS8Pup5mKYl osgQQ1RZFlOjn4KnLcqk7D76xVuAoKlHn9oav5/Ql8pvwtjGIQ8/3hwx9zNcI1yM sbJegcH6nSDiwLvWTDNS80s2nXnfUsaV+hDSx7nfDPOoTgibJ9jBYcGVM= 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=e9rTzBRIQan35B1mZBnWWdzVuhg=; b=FuPFRrURF8/M2i+z732r HK47Y7m4MCETrOabKMTyW2noXUvTxqvk5OREqcb656kCo85yDyII3zlmgBqDuq0x yaNSPjBiUgrdx5X8XM6tRPDrW7ZzlhOf+mr5jGbL9c07upEQeXEru/Q1p2e1sZTh niA105VwN31VtYn3COTjWBY= Received: (qmail 29733 invoked by alias); 18 Apr 2017 10:52:48 -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 29637 invoked by uid 89); 18 Apr 2017 10:52:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.3 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-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr50080.outbound.protection.outlook.com (HELO EUR03-VE1-obe.outbound.protection.outlook.com) (40.107.5.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Apr 2017 10:52:45 +0000 Received: from VI1PR0802MB2176.eurprd08.prod.outlook.com (10.172.12.21) by VI1PR0802MB2173.eurprd08.prod.outlook.com (10.172.12.18) 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:52:44 +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:52:44 +0000 From: Bin Cheng To: "gcc-patches@gcc.gnu.org" CC: nd Subject: [PATCH GCC8][28/33]Don't count non-interger PHIs for register pressure Date: Tue, 18 Apr 2017 10:52:44 +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; VI1PR0802MB2173; 7:40NT/QTkrlYpSvudR2UBNCw6sCa4JpwP5XEdMajA0T/Ysm8a3Iy+s5owoC1zSGs37gigz/azwOJqV5C6zDckJcMe3/rBx/J1pCPC2bQftbumKx7J+qqRuYMy38bvq6T2aD6n9C3MSQI8BublGECSrrMqKa9nEK/g4sJDIIvGKrSQfr21A67IAH9YLZCzm7qUYy/c4+cBsGwH6u0qyIoXnS3e3+Ko+qXscK3YrhHkK++9D96vaOxcZSJ0a2k22umFrJYF2DNOAQbfjLjEjXe9i87FnUKkNHtIdGcbUiipJliyDUMQagFDQEXfxcbkmtMlxfPJivuDOHrZY67hbq2UOw== x-ms-office365-filtering-correlation-id: a074f949-a146-4230-3da0-08d486490b3f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0802MB2173; 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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148); SRVR:VI1PR0802MB2173; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2173; x-forefront-prvs: 028166BF91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39450400003)(39840400002)(39860400002)(39400400002)(39850400002)(5640700003)(9686003)(2906002)(3846002)(33656002)(54356999)(3280700002)(305945005)(7736002)(50986999)(38730400002)(55016002)(6116002)(99286003)(102836003)(8936002)(81166006)(122556002)(66066001)(74316002)(86362001)(53936002)(4326008)(6436002)(110136004)(189998001)(99936001)(6506006)(8676002)(2351001)(3660700001)(25786009)(5660300001)(2900100001)(2501003)(6916009)(7696004)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0802MB2173; 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:52:44.3189 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2173 X-IsSubscribed: yes Hi, Given only integer variables are meaningful for register pressure estimation in IVOPTs, this patch skips non-integer type PHIs when counting register pressure. Is it OK? Thanks, bin 2017-04-11 Bin Cheng * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger when counting register pressure. From ea74dcacc97e4aee0de952dc0142d71502cc5252 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Tue, 7 Mar 2017 16:26:27 +0000 Subject: [PATCH 28/33] skip-non_int-phi-reg-pressure-20170221.txt --- gcc/tree-ssa-loop-ivopts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 0b9170c..db8254c 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -5583,6 +5583,9 @@ determine_set_costs (struct ivopts_data *data) if (get_iv (data, op)) continue; + if (!INTEGRAL_TYPE_P (TREE_TYPE (op))) + continue; + n++; }