From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87525 invoked by alias); 22 May 2017 02:07:51 -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 86932 invoked by uid 89); 22 May 2017 02:07:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:711 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 ESMTP; Mon, 22 May 2017 02:07:41 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B16E683F40; Mon, 22 May 2017 02:07:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B16E683F40 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=law@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B16E683F40 Received: from localhost.localdomain (ovpn-116-159.phx2.redhat.com [10.3.116.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B0445DD62; Mon, 22 May 2017 02:07:42 +0000 (UTC) Subject: Re: [PATCH] cfgcleanup: Ignore clobbers in bb_is_just_return To: Segher Boessenkool , gcc-patches@gcc.gnu.org References: <8852455d0f86e667cf5adab3310fde9153b29286.1495140549.git.segher@kernel.crashing.org> From: Jeff Law Message-ID: Date: Mon, 22 May 2017 03:47:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <8852455d0f86e667cf5adab3310fde9153b29286.1495140549.git.segher@kernel.crashing.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg01646.txt.bz2 On 05/18/2017 02:58 PM, Segher Boessenkool wrote: > The function bb_is_just_return finds if the BB it is asked about does > just a return and nothing else. It currently does not allow clobbers > in the block either, which we of course can allow just fine. > > This patch changes that. Bootstrapped and tested on powerpc64-linux > {-m32,-m64} (and tested that the new test fails before the patch, too). > Is this okay for trunk? > > > Segher > > > 2017-05-18 Segher Boessenkool > > * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs. > > gcc/testsuite/ > * gcc.target/powerpc/conditional-return.c: New testcase. OK. jeff