From patchwork Wed Jul 25 18:10:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 142907 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1117448ljj; Wed, 25 Jul 2018 11:11:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe5kG7BIjhAMaqoD5ThFlJiJX8rZQ0SdOSOzucasD6fNPKJhKiG9s3aj2vQFQSq8wfm7lHW X-Received: by 2002:a63:2506:: with SMTP id l6-v6mr21224539pgl.237.1532542266291; Wed, 25 Jul 2018 11:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532542266; cv=none; d=google.com; s=arc-20160816; b=y/+9vZm5Pc1jSIFPbThaNvXFc0z41feQMZQXP6AdfdFMkTktdX/ees5VWL3e8Nb/jp BaY9j/WqiL2AQES8Wc1ss9fOjzT+qXxotIErNdOqHRJSGfyAyvNkky+zcNmJvE934pMh sbqf3HQJUOR2MPblKKEDrubbzTT5EixpwYyLBXB76exdQi0Nk/6iYQIRjskgIG9YebMh Qb4r7qCgx2jIDGlc29zUyL/yXnTWqKlo26NCiRaGoSZkOeWfkTUbBepdwdu3nrOvKiMn Bp5+Y1krY6NUPc4yUELR9VIr6W2gkLNiB7rbPxVAJdY3DWy/o4UmDVvmym4/b8BuoiqA Q3ew== 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:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=+doEmHXo0HH2B2Qz6UraAWyl52e00Y11ZJ7w92NxnTU=; b=UB3bFHvncTHDecTg9LaxpMA/wC9GKZXGZJr6yvQ5ek+sFnPCS1ACPxf/QFXUarbOiD gqqK+Y0LrK2IerxHSS/oXXEoNN7FKCna3t6miyRVY+W+/jn82GhAft4z/kjC6TWX1wYO tfF1U2CEavQEnUdOqW1/1W6Bbde9Frzw9ugcCY5CR2TGaRQX3eFtqrRQCcxjSuZOohgd TOE7/4C/kM0wQLqJfSJ2XPeOn25/pgND1OSB5OYd6BE/hd+jblwu7JnnIVRrho8bZNUb PXlVC4s86h8IBb/blDfBa0N9TqTkJr5SHlUD/mSJZeJexf/nJTMDpSXUW81XcjoQ/NQI C/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mmhti2d8; dkim=pass header.i=@linaro.org header.s=google header.b=g5FvCOdO; spf=pass (google.com: domain of gcc-patches-return-482369-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482369-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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 3-v6si14386564pgq.529.2018.07.25.11.11.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 11:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-482369-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=mmhti2d8; dkim=pass header.i=@linaro.org header.s=google header.b=g5FvCOdO; spf=pass (google.com: domain of gcc-patches-return-482369-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482369-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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=Yvhl6wYSA/EK YZtm5tynuRTHwTRkalySZ5HWsosxQZbicdH+09Mp8G5cyoD0YCBiaNQ4jutqDGZ/ W5DIZlI3qKxDFV0Osx8pC02tuP7BwdBothW+d/M8v70EoPvvj8WWHcjfSzhkT2VJ EHelLTrPJQXOhWNZSpp1voIyP4AwUjM= 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=xv2JF4QZ2FEqdnJMVf BuD2/V+nw=; b=mmhti2d8NvaekqpTcDQPHdJnN/NZqwnSMfgdCzN8SG+tFtRpGB o+PjuBSm3oR+Zfc+1FieugvfgCH0IC6mvcsnn/Cfr093z0WdT/z9FTiFYcJqQQtb TvHG1SzIR1+MX2/txCochzlvf4su3niwy0SJPDT/SB/ZRcUwbjdNSh9hk= Received: (qmail 92299 invoked by alias); 25 Jul 2018 18:10:55 -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 92287 invoked by uid 89); 25 Jul 2018 18:10:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=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=boost, HX-Received:sk:w132-v6 X-HELO: mail-qk0-f193.google.com Received: from mail-qk0-f193.google.com (HELO mail-qk0-f193.google.com) (209.85.220.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jul 2018 18:10:53 +0000 Received: by mail-qk0-f193.google.com with SMTP id b5-v6so5491790qkg.6 for ; Wed, 25 Jul 2018 11:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=+doEmHXo0HH2B2Qz6UraAWyl52e00Y11ZJ7w92NxnTU=; b=g5FvCOdO25IeGJVVy0BYeiSf+fqvwOmcXTp2gJeNCbpY8B1wSvHn66BLzS2rgFJXBc v6VLfcxw/Z0Ejh/m/iNNAaYRf/M9tI5P7UKBr36K29KlIXHFeF3qBQRr9I6tRc/SfoFZ wCrAw1IMieInDs/XBOxwT5dbWPqtpGPeNgZ/s= Return-Path: Received: from localhost.localdomain ([187.35.231.109]) by smtp.gmail.com with ESMTPSA id i68-v6sm9075622qkf.87.2018.07.25.11.10.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jul 2018 11:10:50 -0700 (PDT) From: Luis Machado To: gcc-patches@gcc.gnu.org Cc: james.greenhalgh@arm.com, Richard.Earnshaw@arm.com Subject: [PATCH] [AArch64, Falkor] Switch to using Falkor-specific vector costs Date: Wed, 25 Jul 2018 15:10:34 -0300 Message-Id: <1532542234-24351-1-git-send-email-luis.machado@linaro.org> X-IsSubscribed: yes The adjusted vector costs give Falkor a reasonable boost in performance for FP benchmarks (both CPU2017 and CPU2006) and doesn't change INT benchmarks that much. About 0.7% for CPU2017 FP and 1.54% for CPU2006 FP. OK for trunk? gcc/ChangeLog: 2018-07-25 Luis Machado * config/aarch64/aarch64.c (qdf24xx_vector_cost): New. (qdf24xx_tunings) : Set to qdf24xx_vector_cost. --- gcc/config/aarch64/aarch64.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index fa01475..d443aee 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -430,6 +430,26 @@ static const struct cpu_vector_cost generic_vector_cost = 1 /* cond_not_taken_branch_cost */ }; +/* Qualcomm QDF24xx costs for vector insn classes. */ +static const struct cpu_vector_cost qdf24xx_vector_cost = +{ + 1, /* scalar_int_stmt_cost */ + 1, /* scalar_fp_stmt_cost */ + 1, /* scalar_load_cost */ + 1, /* scalar_store_cost */ + 1, /* vec_int_stmt_cost */ + 3, /* vec_fp_stmt_cost */ + 2, /* vec_permute_cost */ + 1, /* vec_to_scalar_cost */ + 1, /* scalar_to_vec_cost */ + 1, /* vec_align_load_cost */ + 1, /* vec_unalign_load_cost */ + 1, /* vec_unalign_store_cost */ + 1, /* vec_store_cost */ + 3, /* cond_taken_branch_cost */ + 1 /* cond_not_taken_branch_cost */ +}; + /* ThunderX costs for vector insn classes. */ static const struct cpu_vector_cost thunderx_vector_cost = { @@ -890,7 +910,7 @@ static const struct tune_params qdf24xx_tunings = &qdf24xx_extra_costs, &qdf24xx_addrcost_table, &qdf24xx_regmove_cost, - &generic_vector_cost, + &qdf24xx_vector_cost, &generic_branch_cost, &generic_approx_modes, 4, /* memmov_cost */