From patchwork Wed Jul 26 21:50:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 794130 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-459087-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ySti6km+"; 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 3xHpgg6b1jz9s0g for ; Thu, 27 Jul 2017 07:50:22 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=iPEUKvzKLK5Z83lRW6CVYI9FMJvop5/62Em9jt9vKXTYQf ERjyfOMfHPcQ+cyzjm3VITpJvdGSwyb/Y4sbv8ZDeQUMJNLA0u3A25d/SICKM1B+ n1Hmi7DrKbbzBLdX0EhGDzRESjI2J1kfa5qUWWG3ia9v0aA95IdBBmAM+CIWg= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=uGPvLYAAoo/S0nx847KGFYf9XMk=; b=ySti6km+rv31H5TYI1YT y0k+QrUm8TA9NoiVbYvqoRF6kyzVuLornCFuzpiyI91Ep4iiyi/uyTnudkv+aoic WnyIVkQS53GTKSUNBgMJ2pt3Qr/rkZhyrWkJJAwCFkCiGAtonTdAsGMA1+C38PQ5 A5aa/SloaFd9FK8Nx8HBY6g= Received: (qmail 89216 invoked by alias); 26 Jul 2017 21:50:11 -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 87627 invoked by uid 89); 26 Jul 2017 21:50:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=thun X-HELO: mail-wr0-f181.google.com Received: from mail-wr0-f181.google.com (HELO mail-wr0-f181.google.com) (209.85.128.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Jul 2017 21:50:09 +0000 Received: by mail-wr0-f181.google.com with SMTP id y43so136577819wrd.3 for ; Wed, 26 Jul 2017 14:50:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XJhxngkGDDz6YkSfBzi2pgnEDjZgdMIXIeeGM/XIIBY=; b=mgNkyoSwLinM9+cnq1ErNKKKlwRWg+tO8zQqr5w8wwbvumjiRZ2G0E/k1DdlFaaBqY 0tbzu6giLpLclqlPqiEhbunxRx1thAG2xHcg4NV6Rv4diVFOmaG8shLq5adcq24BRlfy KqwNOl9T8qtqImEwM1MCbmTNgakxULNxUKcV0bi3bfZcw2vKJE5AFJqiiTc+btoB3WC7 +bwcZ0GXh5NrJ1JEAG9SebBNQ8xy/EGmvWyjtIT1TpxMHX48QsISJR9sbvq0k+fHUwW7 +k/A9YMYeU4cKZG/Cuuxf9pazvUvi/+Vo94x9lJC3sFA6W2kY2u2tkxJAcDd6lop4y+y DOwQ== X-Gm-Message-State: AIVw1137IMhGUpvbJC8MLgRGRA43x9YdztLKqfeijG4fGZmlgy71/MAr 4TBo9HWze4/5GycpO9cr/auRMizBo9WN X-Received: by 10.223.161.195 with SMTP id v3mr1753332wrv.125.1501105806597; Wed, 26 Jul 2017 14:50:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.146.100 with HTTP; Wed, 26 Jul 2017 14:50:05 -0700 (PDT) From: Andrew Pinski Date: Wed, 26 Jul 2017 14:50:05 -0700 Message-ID: Subject: [Committed/AARCH64] Fix ThunderX fp vectorizer cost model To: GCC Patches X-IsSubscribed: yes Hi, When I went and split the vectorizer cost model to support thunderx2t99, I did not go back and fix up thunderx to be correct after the split. This patch fixes the problem by changing the vector cost for fp to be the same as scalar fp cost which is good enough and brings us back to where we were with GCC 6. Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64.c (thunderx_vector_cost): Fix vec_fp_stmt_cost. Index: config/aarch64/aarch64.c =================================================================== --- config/aarch64/aarch64.c (revision 250529) +++ config/aarch64/aarch64.c (working copy) @@ -390,7 +390,7 @@ static const struct cpu_vector_cost thun 3, /* scalar_load_cost */ 1, /* scalar_store_cost */ 4, /* vec_int_stmt_cost */ - 4, /* vec_fp_stmt_cost */ + 1, /* vec_fp_stmt_cost */ 4, /* vec_permute_cost */ 2, /* vec_to_scalar_cost */ 2, /* scalar_to_vec_cost */