From patchwork Mon Nov 11 15:52:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 290365 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9946A2C0099 for ; Tue, 12 Nov 2013 02:52:33 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=Bha0978RLRk2e3+aMQoMWBmw1aJY7 MaOE9YVuNXbm5/3NxQsZ7tqDnniISLrHQ1aJE3dXQZW2RvgnRxYRXEW4MvZfC2QV HwMzUvtXpImHv1MqLtHEPbMN2hUbEMCmgtgcO3kjW8JrICvQLpYS5LoNl/nS+rXf Q6yuMZ1tqG6fOc= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=R913VJtmmspIr63PozZfiPVMC68=; b=Bxd w9wviW1rNiMer9vy8PuQyKs4M6tuRvmJYtz95wj5zzDaLn/5eqf4mnHRZsqOQsCl NVDRWxSa36pnlwjvU4ebEr7riGmCs3g6neCH5L1Ja4U4ILvjmUA1IIHSmgKtxZrW JLPK1H8OOm2ezHb4xlex9snQB7s4B2iUfCV3LOMs= Received: (qmail 28497 invoked by alias); 11 Nov 2013 15:52:24 -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 28484 invoked by uid 89); 11 Nov 2013 15:52:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_05, RDNS_NONE, SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Nov 2013 15:52:23 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rABFqF98014494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 11 Nov 2013 10:52:15 -0500 Received: from tucnak.zalov.cz (vpn1-6-153.ams2.redhat.com [10.36.6.153]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rABFqDXO009830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Nov 2013 10:52:15 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.7/8.14.7) with ESMTP id rABFqDPo027365; Mon, 11 Nov 2013 16:52:13 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.7/8.14.7/Submit) id rABFqDNM027364; Mon, 11 Nov 2013 16:52:13 +0100 Date: Mon, 11 Nov 2013 16:52:13 +0100 From: Jakub Jelinek To: Aldy Hernandez Cc: gcc-patches@gcc.gnu.org Subject: [gomp4] Fix two typos Message-ID: <20131111155213.GE27813@tucnak.zalov.cz> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi! Dunno how I've managed to break the branch on Friday, anyway, here is an obvious fix, committed to the branch. 2013-11-11 Jakub Jelinek * tree-vect-data-refs.c (vect_analyze_data_refs): Check loop->safelen rather than loop->simdlen. * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise. Jakub --- gcc/tree-vect-data-refs.c.jj 2013-11-08 17:12:49.000000000 +0100 +++ gcc/tree-vect-data-refs.c 2013-11-11 16:25:15.363311414 +0100 @@ -2982,7 +2982,7 @@ vect_analyze_data_refs (loop_vec_info lo gimple stmt = gsi_stmt (gsi); if (!find_data_references_in_stmt (loop, stmt, &datarefs)) { - if (is_gimple_call (stmt) && loop->simdlen) + if (is_gimple_call (stmt) && loop->safelen) { tree fndecl = gimple_call_fndecl (stmt), op; if (fndecl != NULL_TREE) --- gcc/tree-vect-stmts.c.jj 2013-11-08 17:12:49.000000000 +0100 +++ gcc/tree-vect-stmts.c 2013-11-11 16:26:43.254861184 +0100 @@ -2334,7 +2340,7 @@ vectorizable_simd_clone_call (gimple stm /* If the function isn't const, only allow it in simd loops where user has asserted that at least nunits consecutive iterations can be performed using SIMD instructions. */ - if ((loop == NULL || loop->simdlen < nunits) && gimple_vuse (stmt)) + if ((loop == NULL || loop->safelen < nunits) && gimple_vuse (stmt)) { arginfo.release (); return false;