From patchwork Tue Jan 29 15:49:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 216595 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]) by ozlabs.org (Postfix) with SMTP id 8F2012C034E for ; Wed, 30 Jan 2013 02:49:26 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1360079366; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=y9fBXDXL3Nv05PmykCX/iVe/pe4=; b=JfmupHPOgSpyCWL JZ1EaQ0IqNPm3ConV0okaGi8Naq8+xcUv7yntXDSoXiJrn2Hxl6pHD5wQfiO31eI tAB6EBGCH/600L2CIIcZESFieW4SVDjxFtm9dcvspSlYZ3ljfDvWLk88filrq8wZ a1ThXjgEuRw+xiD2fnBHndkLBEUk= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Nr84JiPymjJgV7HMUhQZEIXrmier7pnZxIJq31eg1OPR5al+67FYRSUSdMdPBZ DDqzlKM0bUk1XwzkQxt3Dg8P6qhCbaSGaa0mjj+4/FP/8kdNAO6Ehsz1L+T4GrPk tF9W/x9a44JEsi8JykJKeOPbPRA34JmZ+YauCU99AqIp0=; Received: (qmail 22945 invoked by alias); 29 Jan 2013 15:49:18 -0000 Received: (qmail 22936 invoked by uid 22791); 29 Jan 2013 15:49:17 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS, TW_CF X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Jan 2013 15:49:11 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0TFnAwe001408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 29 Jan 2013 10:49:10 -0500 Received: from redhat.com (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r0TFn76R029441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 29 Jan 2013 10:49:09 -0500 Date: Tue, 29 Jan 2013 16:49:06 +0100 From: Marek Polacek To: GCC Patches Subject: [PATCH] Small cleanup in cleanup_cfg Message-ID: <20130129154906.GB7360@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 I don't see any reason why we'd want to mark BBs in this case, changed_bbs are thrown away right after fix_loop_structure marks them. Regtested/bootstrapped on x86_64-linux, ok for trunk? 2013-01-29 Marek Polacek * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs. Marek --- gcc/cfgcleanup.c.mp 2013-01-29 13:53:21.740473075 +0100 +++ gcc/cfgcleanup.c 2013-01-29 13:53:27.942491341 +0100 @@ -3017,14 +3017,11 @@ cleanup_cfg (int mode) && (changed || (mode & CLEANUP_CFG_CHANGED))) { - bitmap changed_bbs; timevar_push (TV_REPAIR_LOOPS); /* The above doesn't preserve dominance info if available. */ gcc_assert (!dom_info_available_p (CDI_DOMINATORS)); calculate_dominance_info (CDI_DOMINATORS); - changed_bbs = BITMAP_ALLOC (NULL); - fix_loop_structure (changed_bbs); - BITMAP_FREE (changed_bbs); + fix_loop_structure (NULL); free_dominance_info (CDI_DOMINATORS); timevar_pop (TV_REPAIR_LOOPS); }