From 003ff4045bae14fa4f396727545d5146a22eceec Mon Sep 17 00:00:00 2001 From: vries Date: Mon, 16 Nov 2015 12:40:50 +0000 Subject: [PATCH] Remove first_pass_instance 2015-11-16 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230420 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/passes.c | 4 ---- gcc/tree-pass.h | 6 ------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2fd1ec..b5d3fe3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2015-11-16 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. + +2015-11-16 Tom de Vries + * passes.def: Add arg to pass_ccp pass instantiation. * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p instead of first_pass_instance. 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 *); -- 2.7.4