From patchwork Tue May 22 17:04:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 136582 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1886904lji; Tue, 22 May 2018 10:05:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpx8DZtD+E/Iw23JRkPHEphMbivhvEw0GniBxeywqJShVoKnMq9emvqAd7FmwVUCbxQLtit X-Received: by 2002:a62:568f:: with SMTP id h15-v6mr25144701pfj.131.1527008723419; Tue, 22 May 2018 10:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527008723; cv=none; d=google.com; s=arc-20160816; b=GYDsAnZnUu2W3na/rtyaHxibbXfk0zQM5VKFPtIFc4cxxxZM5XmtkqpSdsCItu4wGw hBFvs8omGJ2AaVKtm0ZNPCnxXtKpP6uqkjvB9KoWCQF9oE1QhfdYxqeHTKWV0j2teikG tvDntf3oU+D5KzYKe0XASZz6c/rfaKyR01BpYgcND8b1pYG1RCHBipBQ4QQBD1AvZeRo 8ZoGGlx9J4/ghB7zajRpIZVj2CqxW68uSlQ9/Jl9izXvvTAAeLFHW/+MsBT7k2XBs/Z+ KjMWQ4/K93cEv11/w6XzkRBPasNXVZO467O0qTFTnaqlBEDxkGojVL0EO7sGOdGYfOqT cAeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=00+D/QsP5NdCckNpXpwiBeabAnEdHDbvox1cpj0vl8w=; b=n8MMxadTSV+1Lt3umRY068ZhNHISS69DATUheMiPAiCC0gNPBJbW1K8+3eWtSvsSiY 4SE3/pjf0+oB7aW5EwplSjtDpIpWStGZK83t882dCg3lU98p5t4H/nmkzaTdUwR0wQMD jGjBg3+ctderdIXE+urewSdBBpr05IwRLgbkQ7y7RV6/K6eZDqFJ3aJCUP8qnmMd24Hp yZm3XjDVtZ606ZXdWYwm0S6jKMcr4h1todq+y7n69LW3JeDGDgm+ICurTzLPUIDA+R2I rjouE0OFVETgwnBMBTwIDgqGZsXu9AZD82m0W3UzKju+7MPCM/I5CmUEY9CgXR7/Ex+Z pd2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=G/myh7Ie; spf=pass (google.com: domain of gcc-patches-return-478194-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478194-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b4-v6si12839277pgn.268.2018.05.22.10.05.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 10:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-478194-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 header.s=default header.b=G/myh7Ie; spf=pass (google.com: domain of gcc-patches-return-478194-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478194-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:cc:subject:date:message-id; q=dns; s=default; b=wCcBTMIEjUp7 lHXknpyTh7kvQM5sDA/Ra8FxHI1p6Xa/2d7U/oUrxw+Bvb9hBnqeZ7n52BsB6ZQk sD4ceUwbAtLj+HYxpD+XVifjCgFRWIysMEulVZ2fIHvYKd73MjlN3Myu7dGLUyIe jH48y/1mLKsiec9Fe+ql0q0iyfqIIsE= 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; s=default; bh=30esswBh85g1LKyVz7 GUbnxlSWA=; b=G/myh7Ie+46R36ynA31KZ4XHTBqoJOkOBbkxFXIEOsrRw6zebd rFVpCa2NVNXZao+HvHzMMeS91IsgPB09NvuqHaA2T4zFxojNUbLwXQcArnAmlvtR ii+FHoHSgWvN3/P2hkkMgHWrthg9Ilssf3AdNlSzaUDuqyxPDIkWlc6xI= Received: (qmail 29565 invoked by alias); 22 May 2018 17:05:12 -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 29540 invoked by uid 89); 22 May 2018 17:05:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=luis, Luis X-HELO: mail-yb0-f196.google.com Received: from mail-yb0-f196.google.com (HELO mail-yb0-f196.google.com) (209.85.213.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 May 2018 17:05:04 +0000 Received: by mail-yb0-f196.google.com with SMTP id l2-v6so5305242ybp.8 for ; Tue, 22 May 2018 10:05:04 -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:cc:subject:date:message-id; bh=00+D/QsP5NdCckNpXpwiBeabAnEdHDbvox1cpj0vl8w=; b=SqAI668Y+w7KXD3YHdlxfz/2d2bCbkKcrJnoKVBHa/K/4jUg3VFv+bh+yjW+v43wZl UZtwpNOaU2Ulv4U/e4pQNmTwsStB6sxhnk573GeEC9CJ/HUt2ngSi5CbMmcTBB7WeLHT pYtARMBCAuVnz2s5kHQVm0B1ej89rdREr8N76MHYs8N+iyhggIDbxGALaXOv4dtQ+g+W aUmypk0JjwsdX+ZHd9CbGeBGABa1KTDXkTGqmnQMvD1NMia6xtAKRz00d8MTnX0VufoH mfoCcyG43Dc/wqkrjSNP7R/b983iYv1HDa2dyfhIuyrYijPyA9X/Hoq1Z0+mpYlWHEmh n9ug== X-Gm-Message-State: ALKqPwfUDNhMP4X49+6IMt5UVynB5gZ7ldXBC+OffPnDgQlhw/cMpVhu t7DOWMIVsPBAyZhvdvxgf7bdQ3FubnQ= X-Received: by 2002:a25:4f41:: with SMTP id d62-v6mr14556302ybb.100.1527008702922; Tue, 22 May 2018 10:05:02 -0700 (PDT) Received: from localhost.localdomain (c-69-243-238-236.hsd1.al.comcast.net. [69.243.238.236]) by smtp.gmail.com with ESMTPSA id v125-v6sm6956004ywg.75.2018.05.22.10.05.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 10:05:01 -0700 (PDT) From: Luis Machado To: gcc-patches@gcc.gnu.org Cc: james.greenhalgh@arm.com, Richard.Earnshaw@arm.com Subject: [PATCH] [AArch64, Falkor] Falkor address costs tuning Date: Tue, 22 May 2018 14:04:38 -0300 Message-Id: <1527008678-17828-1-git-send-email-luis.machado@linaro.org> X-IsSubscribed: yes Switch from using generic address costs to using Falkor-specific ones, which give Falkor better results overall. OK for trunk? Given this is a Falkor-specific adjustment, would this be an acceptable backport for GCC 8 as well? gcc/ChangeLog: 2018-05-22 Luis Machado * config/aarch64/aarch64.c (qdf24xx_addrcost_table): New static global. (qdf24xx_tunings) : Set to qdf24xx_addrcost_table. --- gcc/config/aarch64/aarch64.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f60e0ad..548d87a 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -314,6 +314,22 @@ static const struct cpu_addrcost_table thunderx2t99_addrcost_table = 0, /* imm_offset */ }; +static const struct cpu_addrcost_table qdf24xx_addrcost_table = +{ + { + 1, /* hi */ + 1, /* si */ + 1, /* di */ + 2, /* ti */ + }, + 1, /* pre_modify */ + 1, /* post_modify */ + 3, /* register_offset */ + 4, /* register_sextend */ + 3, /* register_zextend */ + 2, /* imm_offset */ +}; + static const struct cpu_regmove_cost generic_regmove_cost = { 1, /* GP2GP */ @@ -856,7 +872,7 @@ static const struct tune_params xgene1_tunings = static const struct tune_params qdf24xx_tunings = { &qdf24xx_extra_costs, - &generic_addrcost_table, + &qdf24xx_addrcost_table, &qdf24xx_regmove_cost, &generic_vector_cost, &generic_branch_cost,