From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28297 invoked by alias); 3 Sep 2015 09:16:59 -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 28286 invoked by uid 89); 3 Sep 2015 09:16:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 03 Sep 2015 09:16:57 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 11F3EC0A5144; Thu, 3 Sep 2015 09:16:56 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t839Gsee013948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 3 Sep 2015 05:16:55 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id t839Gq24013682; Thu, 3 Sep 2015 11:16:53 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id t839GpAC013681; Thu, 3 Sep 2015 11:16:51 +0200 Date: Thu, 03 Sep 2015 09:20:00 -0000 From: Jakub Jelinek To: Tom de Vries Cc: GCC Patches Subject: Re: [PR65637][PATCH][4/5] Fix inner loop phi in expand_omp_for_static_chunk Message-ID: <20150903091651.GM1847@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <552E6341.4040401@mentor.com> <552E64EC.5060707@mentor.com> <55E441CA.9070900@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55E441CA.9070900@mentor.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00227.txt.bz2 On Mon, Aug 31, 2015 at 02:00:10PM +0200, Tom de Vries wrote: > --- a/gcc/omp-low.c > +++ b/gcc/omp-low.c > @@ -6885,6 +6885,22 @@ expand_omp_for_static_nochunk (struct omp_region *region, > } > } > Please add a function comment. > +static gphi * > +find_phi_with_arg_on_edge (tree arg, edge e) > +{ > + basic_block bb = e->dest; > + > + for (gphi_iterator gpi = gsi_start_phis (bb); > + !gsi_end_p (gpi); > + gsi_next (&gpi)) > + { > + gphi *phi = gpi.phi (); > + if (PHI_ARG_DEF_FROM_EDGE (phi, e) == arg) > + return phi; > + } > + > + return NULL; > +} > --- /dev/null > +++ b/libgomp/testsuite/libgomp.c/autopar-1-chunk-size.c > @@ -0,0 +1,44 @@ > +/* { dg-do run } */ > +/* { dg-additional-options "-ftree-parallelize-loops=4 -ffast-math --param parloops-chunk-size=100" } */ Similarly to previous patch, just use autopar-2.c as filename and #include "autopar-1.c" rather than duplicating it. Ok with those changes. Jakub