From patchwork Sun Nov 15 11:08:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 544821 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 496DB1402A2 for ; Sun, 15 Nov 2015 22:09:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=GHopskSD; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=JVhrg9F1Aaklbyb2R GGAHDRXB7ao6D7TJDIjB34ljG/rMtKOfGPTGucApqOFUvdNJ3lgqWjLs/gTyOFkg thRa6H7d1Lp24SuNsdnRHcy9yvWVZDAgtYRHkQqLwZrrnR+SScSpcxtJfXlCpzRm A/WkWp9Myu/fnjHahvxiyzb54g= 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=opJRUHifIKE0AvmV58xLxP0 BFGg=; b=GHopskSDPH/+Tq5y39qck+RiHDxUixR2Y4jak5WiNQnMgV5casPcbKW 0MBUzHTiP4KeeaKBgqRvYLGjydaE2C6VvKqucwfqfbYJBSzBY3AkcDQDOgaVrD5j sX+XDmAHtB/Jl3+G30+OVieowjWInE0nhHqNXq6FEIeRWIoQ5lYU= Received: (qmail 28398 invoked by alias); 15 Nov 2015 11:09:36 -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 28367 invoked by uid 89); 15 Nov 2015 11:09:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 15 Nov 2015 11:09:32 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46441) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ZxvBZ-0004XE-HX for gcc-patches@gnu.org; Sun, 15 Nov 2015 06:09:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxvBU-0000po-9T for gcc-patches@gnu.org; Sun, 15 Nov 2015 06:09:29 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:58237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxvBU-0000pj-3T for gcc-patches@gnu.org; Sun, 15 Nov 2015 06:09:24 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZxvBS-0000qS-J0 from Tom_deVries@mentor.com ; Sun, 15 Nov 2015 03:09:22 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Sun, 15 Nov 2015 11:09:21 +0000 Subject: [PATCH, 6/6] Remove first_pass_instance To: Richard Biener References: <56447A09.4070608@mentor.com> <564498CE.5010207@mentor.com> <1447342432.7830.21.camel@surprise> <5645EC5A.9060005@mentor.com> <5646FC85.2060802@mentor.com> <564864AA.6000101@mentor.com> CC: David Malcolm , "gcc-patches@gnu.org" From: Tom de Vries Message-ID: <564867BF.4030608@mentor.com> Date: Sun, 15 Nov 2015 12:08:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564864AA.6000101@mentor.com> X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 On 15/11/15 11:55, Tom de Vries wrote: > [ was: Re: [PATCH] Remove first_pass_instance from pass_vrp ] > > This patch series removes first_pass_instance. > > 1 Remove first_pass_instance from pass_vrp > 2 Remove first_pass_instance from pass_reassoc > 3 Remove first_pass_instance from pass_dominator > 4 Remove first_pass_instance from pass_object_sizes > 5 Remove first_pass_instance from pass_ccp > 6 Remove first_pass_instance > > Bootstrapped and reg-tested on x86_64. > > I will post the individual patches in reply to this email. > > [ I won't post the first patch though. It was already posted here: > https://gcc.gnu.org/ml/gcc-patches/2015-11/msg01701.html . ] this patch removes the variable first_pass_instance. Thanks, - Tom Remove first_pass_instance 2015-11-15 Tom de Vries * passes.c (first_pass_instance): Remove variable. (execute_todo): Remove setting of first_pass_instance. * tree-pass.h (first_pass_instance): Remove declaration. --- gcc/passes.c | 4 ---- gcc/tree-pass.h | 6 ------ 2 files changed, 10 deletions(-) diff --git a/gcc/passes.c b/gcc/passes.c index e634c5c..0e23dcb 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -151,7 +151,6 @@ debug_pass (void) /* Global variables used to communicate with passes. */ bool in_gimple_form; -bool first_pass_instance; /* This is called from various places for FUNCTION_DECL, VAR_DECL, @@ -2005,9 +2004,6 @@ execute_todo (unsigned int flags) timevar_push (TV_TODO); - /* Inform the pass whether it is the first time it is run. */ - first_pass_instance = (flags & TODO_mark_first_instance) != 0; - statistics_fini_pass (); if (flags) diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index d647e73..dcd2d5e 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -629,12 +629,6 @@ extern void ipa_read_optimization_summaries (void); extern void register_one_dump_file (opt_pass *); extern bool function_called_by_processed_nodes_p (void); -/* Set to true if the pass is called the first time during compilation of the - current function. Note that using this information in the optimization - passes is considered not to be clean, and it should be avoided if - possible. */ -extern bool first_pass_instance; - /* Declare for plugins. */ extern void do_per_function_toporder (void (*) (function *, void *), void *);