From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51992 invoked by alias); 10 Nov 2015 10:11:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 51979 invoked by uid 89); 10 Nov 2015 10:11:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Nov 2015 10:11:40 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-1-ycVCdwzDSjK5FIU3EeCxgg-1; Tue, 10 Nov 2015 10:11:35 +0000 Received: from e107456-lin.cambridge.arm.com ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2015 10:11:34 +0000 From: James Greenhalgh To: gcc-patches@gcc.gnu.org Cc: richard.guenther@gmail.com Subject: [Patch GCC 5/Vect] Partial backport of r228751 (pr68238) Date: Tue, 10 Nov 2015 10:11:00 -0000 Message-Id: <1447150290-5815-1-git-send-email-james.greenhalgh@arm.com> MIME-Version: 1.0 X-MC-Unique: ycVCdwzDSjK5FIU3EeCxgg-1 Content-Type: multipart/mixed; boundary="------------2.2.0.1.gd394abb.dirty" X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01169.txt.bz2 This is a multi-part message in MIME format. --------------2.2.0.1.gd394abb.dirty Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable Content-length: 758 Hi, As requested in the PR, this patch is a partial backport of r228751. I can't claim any responsibility for it, but I did take it through the paces on an aarch64-none-linux-gnu and x86_64-none-linux-gnu bootstrap/ test run and found no issues. Applied as r230092 on gcc-5-branch (pre-approved in the PR) after checking that it gives the right results for the code I derived the PR from. I'll start a test cycle for a 4.9 backport. Thanks, James --- 2015-11-09 James Greenhalgh Partial backport from trunk r228751. PR tree-optimization/68238 2015-10-13 Richard Biener * tree-vect-loop.c (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS to estimate alias versioning cost. --------------2.2.0.1.gd394abb.dirty Content-Type: text/x-patch; name=0001-Patch-GCC-5-Vect-Partial-backport-of-r228751-pr68238.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Patch-GCC-5-Vect-Partial-backport-of-r228751-pr68238.patch" Content-length: 641 diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 88ef251..05515b5 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -2825,7 +2825,7 @@ vect_estimate_min_profitable_iters (loop_vec_info loo= p_vinfo, if (LOOP_REQUIRES_VERSIONING_FOR_ALIAS (loop_vinfo)) { /* FIXME: Make cost depend on complexity of individual check. */ - unsigned len =3D LOOP_VINFO_MAY_ALIAS_DDRS (loop_vinfo).length (); + unsigned len =3D LOOP_VINFO_COMP_ALIAS_DDRS (loop_vinfo).length (); (void) add_stmt_cost (target_cost_data, len, vector_stmt, NULL, 0, vect_prologue); dump_printf (MSG_NOTE, --------------2.2.0.1.gd394abb.dirty--