From patchwork Tue Dec 13 17:13:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 705463 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 3tdRB52SjYz9srZ for ; Wed, 14 Dec 2016 04:13:26 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="H/6KBOFi"; 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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=wW6s8 E0wMS2ccB5HH5HSzk0FeRAxNezEiGr0ycBfG2wXojwsTxqAFkinYiHisXZQkbqFa 7aDSvSoQnsnEddr91VF2ZOaiH3tMrrdJSnFDzRaZRCt3qBXMI2yOp4uahvxwKDeN aUBBRInbSoBTDqbAXsw5FUxZ9VUxVlFQyTcWY4= 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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=DWxnxrtjeH5 +H3yh4hERrgO/jls=; b=H/6KBOFin++Xjv29tMrqlDcphvj0sCsq72+W5DrxpnD UjdtAzOg3bZWMOA11VmAP/E5KDC9wQG7dZNsvQpy2kdh8R2iZlJ1Me9q418Ke4Qq vlP5QpYerJCOUDDZbRjiEjhdo7EN68cECg8LhjyqpzRZJkw9l5GQJYdoF2tfpseY = Received: (qmail 37442 invoked by alias); 13 Dec 2016 17:13:18 -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 37429 invoked by uid 89); 13 Dec 2016 17:13:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Dec 2016 17:13:16 +0000 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBDH9LQN002316 for ; Tue, 13 Dec 2016 12:13:14 -0500 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 27ags2r21g-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Dec 2016 12:13:14 -0500 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Dec 2016 10:13:13 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Dec 2016 10:13:10 -0700 Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 825313E40072; Tue, 13 Dec 2016 10:13:09 -0700 (MST) Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uBDHD9c57733648; Tue, 13 Dec 2016 10:13:09 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 621326A03B; Tue, 13 Dec 2016 10:13:09 -0700 (MST) Received: from BigMac.local (unknown [9.80.220.149]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id E50E16A047; Tue, 13 Dec 2016 10:13:08 -0700 (MST) To: GCC Patches Cc: Segher Boessenkool , David Edelsohn From: Bill Schmidt Subject: [PATCH, rs6000] Cost model adjustment Date: Tue, 13 Dec 2016 11:13:08 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16121317-0028-0000-0000-0000063FAD50 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006242; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000196; SDB=6.00793325; UDB=6.00384612; IPR=6.00571125; BA=6.00004963; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013618; XFM=3.00000011; UTC=2016-12-13 17:13:11 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16121317-0029-0000-0000-0000319C8904 Message-Id: <0a8ea7d7-4fcb-39ed-d872-49cb8e9247aa@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-13_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612130270 X-IsSubscribed: yes Hi, This patch makes a slight adjustment to the vectorization cost model that was previously overlooked. Bootstrapped and tested on powerpc64le-unknown-linux gnu with no regressions. Ok for trunk? Thanks, Bill 2016-12-13 Bill Schmidt * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 243578) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -5358,6 +5358,9 @@ rs6000_builtin_vectorization_cost (enum vect_cost_ return 3; case unaligned_load: + if (TARGET_P9_VECTOR) + return 3; + if (TARGET_EFFICIENT_UNALIGNED_VSX) return 1;