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: 949337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-482369-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iLtpuqXR"; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="g5FvCOdO"; dkim-atps=neutral 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 41bNZZ3sflz9s1x for ; Thu, 26 Jul 2018 04:11:02 +1000 (AEST) 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=KUUAfHOujGAb oATovlX33XbLk5YVFcnHAZQ6UWS7/r/njyjrJPadzHyQ9UqTaYUN4r0AnH7oFZyE Z4phbjoWb/jdzi32TuehANxMJnB1nup9aDccEL2ZQZO+EF+iV4mcw0ZqizoH8aUG C3R7SpX+QoyZDOt+0oZLzWGULINJaLc= 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=iLtpuqXR32UnFuFtxB0wikSSu6IbfU84zN39lAEd1CE+i+1Qgo yecUhzt3vIoM83lAgeINhr6G+qg3OQfl0rMMk9S3IrxR3mWS5zzKIkMND//zRAHb LDyS/bfTaWLi55I4o61XGZGoLUgwd+oii3xrrwF01O0LdDAPMFkvnDMUc= 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= 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(-) 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 */