From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14575 invoked by alias); 29 Jun 2015 17:58:44 -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 14559 invoked by uid 89); 29 Jun 2015 17:58:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham 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; Mon, 29 Jun 2015 17:58:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 58B10A37E5; Mon, 29 Jun 2015 17:58:41 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-49.phx2.redhat.com [10.3.113.49]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5THweqS030229; Mon, 29 Jun 2015 13:58:41 -0400 Message-ID: <55918757.5010107@redhat.com> Date: Mon, 29 Jun 2015 18:26:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tom de Vries , Richard Biener CC: GCC Patches Subject: Re: [PATCH, PR66652] Use max_loop_iterations in transform_to_exit_first_loop_alt References: <5591550C.8080607@mentor.com> In-Reply-To: <5591550C.8080607@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg02107.txt.bz2 On 06/29/2015 08:24 AM, Tom de Vries wrote: > Hi, > > this patch fixes PR66652. > > It uses max_loop_iterations in transform_to_exit_first_loop_alt to > ensure that the new loop bound nit + 1 doesn't overflow. > > Bootstrapped and reg-tested on x86_64. > > OK for trunk? > > Thanks, > - Tom > > 0001-Use-max_loop_iterations-in-transform_to_exit_first_l.patch > > > Use max_loop_iterations in transform_to_exit_first_loop_alt > > 2015-06-29 Tom de Vries > > PR tree-optimization/66652 > * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use > max_loop_iterations to determine if nit + 1 overflows. > > * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite > using restrict pointers. > (main): Add arguments to calls to f. > * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same. > > * gcc.dg/parloops-exit-first-loop-alt-pr66652.c: New test. > * gcc.dg/parloops-exit-first-loop-alt-3.c (f): Rewrite using restrict > pointers. > * gcc.dg/parloops-exit-first-loop-alt.c: Same. OK. Make sure to put the PR marker in the testsuite/ChangeLog entry and drop the testsuite/ prefix in the testsuite/ChangeLog entry. jeff